:root {
  --black: #000000;
  --mint: #A8E6CF;
  --lime: #DCEDC1;
  --peach: #FFD3B6;
  --coral: #FFAAA5;
  --rose: #FF8B94;
  --active-accent: var(--mint);
  --hero-cat: url("https://github.com/user-attachments/assets/4ef7335d-d6e2-4cc6-9908-529814bafac6");
  --max: 1240px;
  --line: 2px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--mint);
  overflow-x: hidden;
  font: Consolas;
  font-size: 14px;
  line-height: 1.5;
  transition: background-color .2s ease, color .2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button, a { -webkit-tap-highlight-color: transparent; }

::selection {
  background: var(--mint);
  color: var(--black);
}

.site-shell {
  width: 100%;
  overflow: clip;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: var(--black);
  border-bottom: 1px solid var(--mint);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  font: 600 .8rem/1 "Courier New", Consolas, monospace;
  letter-spacing: -.02em;
}

.brand-name,
.brand-nickname {
  font-family: "Courier New", Consolas, monospace;
  font-weight: 600;
}

.brand-nickname { opacity: .6; }

.brand-name {
  display: inline-block;
  background: linear-gradient(100deg, var(--mint), var(--lime), var(--peach), var(--coral), var(--rose), var(--mint));
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: accent-flow 8s linear infinite;
}

html[data-theme="light"] .brand-name {
  -webkit-text-stroke: .35px rgba(0, 0, 0, .6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

.site-header nav {
  display: flex;
  gap: 1.1rem;
  font: 600 .68rem/1 "Courier New", Consolas, monospace;
  text-transform: lowercase;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .45rem .1rem;
  border-bottom: 2px solid transparent;
}

.nav-icon {
  width: .8rem;
  color: currentColor;
  font-size: .78rem;
  line-height: 1;
  text-align: center;
  opacity: .8;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 30px;
  padding: .35rem .5rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 600 .6rem/1 "Courier New", Consolas, monospace;
  text-transform: uppercase;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: currentColor;
  color: var(--black);
}

.theme-icon { font-size: .9rem; line-height: .7; }

.site-header nav a:hover,
.site-header nav a:focus-visible {
  border-color: currentColor;
}

.section {
  position: relative;
  min-height: auto;
  background: var(--black);
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.section-home { --accent: var(--mint); }
.section-about { --accent: var(--lime); }
.section-projects { --accent: var(--peach); }
.section-skills { --accent: var(--coral); }
.section-contact { --accent: var(--rose); }

.work-reel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 5vw, 4.5rem) 0;
  background: var(--black);
  color: var(--mint);
  border-bottom: 1px solid currentColor;
}

.film-viewport {
  width: 100%;
  overflow: hidden;
}

.film-track,
.film-track-repeat {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 1.3vw, 1.2rem);
}

.film-track {
  width: max-content;
  padding: 1rem 0;
  animation: reel-drift 48s linear infinite;
}

.film-frame {
  flex: 0 0 clamp(190px, 22vw, 330px);
  height: clamp(150px, 17vw, 230px);
  margin: 0;
  padding: .45rem;
  overflow: hidden;
  border: 1px solid currentColor;
  background: var(--black);
  box-shadow: 8px 8px 0 rgba(168, 230, 207, .14);
}

.film-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.06);
}

.film-frame:nth-child(5n + 1) { transform: translateY(-.9rem) rotate(-1.3deg); }
.film-frame:nth-child(5n + 2) { transform: translateY(.75rem) rotate(.9deg); }
.film-frame:nth-child(5n + 3) { transform: translateY(-.35rem) rotate(-.6deg); }
.film-frame:nth-child(5n + 4) { transform: translateY(1rem) rotate(1.1deg); }
.film-frame:nth-child(5n + 5) { transform: translateY(-.7rem) rotate(-.8deg); }

html[data-theme="light"] .work-reel {
  background: var(--mint);
  color: var(--black);
}

html[data-theme="light"] .film-frame {
  background: var(--mint);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .13);
}

@keyframes reel-drift {
  to { transform: translateX(-50%); }
}

.section-home {
  isolation: isolate;
  overflow: hidden;
}

.section-home::before,
.section-home::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-home::before {
  z-index: -2;
  background: var(--hero-cat) 76% center / cover no-repeat;
  filter: grayscale(1) contrast(1.1) brightness(.52);
  opacity: .62;
}

.section-home::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .76) 48%, rgba(0, 0, 0, .58) 100%);
}

.section-inner {
  width: min(var(--max), calc(100% - 8vw));
  margin: 0 auto;
  padding: 140px 0 110px;
}

.hero-grid {
  min-height: calc(100vh - 76px);
  padding-top: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 5vw;
}

.eyebrow,
.section-heading > span,
.project-meta,
.skill-index,
.art-caption {
  font: 600 .64rem/1.2 "Courier New", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.hero-copy h1 {
  margin: .6rem 0 .9rem;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.03em;
  font-weight: 650;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
  padding: clamp(1rem, 2.4vw, 1.7rem);
  border: 1px solid rgba(168, 230, 207, .55);
  background: rgba(0, 0, 0, .3);
  box-shadow: 0 12px 42px rgba(0, 0, 0, .24);
  backdrop-filter: blur(2px);
  text-align: center;
}

.hero-copy h1 span { display: inline-block; max-width: 100%; }

.hero-lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: .92rem;
  line-height: 1.55;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .55rem .85rem;
  border: 1px solid currentColor;
  font: 600 .66rem/1 "Courier New", Consolas, monospace;
  text-transform: uppercase;
}

.button:hover,
.button:focus-visible,
.card-link:hover,
.card-link:focus-visible,
.project-links a:hover,
.project-links a:focus-visible,
.contact-links a:hover,
.contact-links a:focus-visible {
  background: var(--accent);
  color: var(--black);
}

.button-plain { background: var(--black); }

html[data-theme="light"] {
  background: var(--active-accent);
}

html[data-theme="light"] body {
  background: var(--active-accent);
  color: var(--black);
}

html[data-theme="light"] ::selection {
  background: var(--black);
  color: var(--active-accent);
}

html[data-theme="light"] .site-header {
  background: var(--active-accent);
  color: var(--black);
  border-color: var(--black);
}

html[data-theme="light"] .section {
  background: var(--accent);
  color: var(--black);
  border-color: var(--black);
}

html[data-theme="light"] .section-home::before {
  filter: saturate(.82) contrast(.92) brightness(1.08);
  opacity: .36;
}

html[data-theme="light"] .section-home::after {
  background: linear-gradient(90deg, rgba(168, 230, 207, .9) 0%, rgba(168, 230, 207, .7) 52%, rgba(168, 230, 207, .58) 100%);
}

html[data-theme="light"] .hero-copy {
  border-color: rgba(0, 0, 0, .58);
  background: rgba(168, 230, 207, .45);
  box-shadow: 0 12px 42px rgba(0, 0, 0, .16);
}

html[data-theme="light"] .button-plain,
html[data-theme="light"] .cat-frame,
html[data-theme="light"] .project-card {
  background: var(--accent);
}

html[data-theme="light"] .button:hover,
html[data-theme="light"] .button:focus-visible,
html[data-theme="light"] .card-link:hover,
html[data-theme="light"] .card-link:focus-visible,
html[data-theme="light"] .project-links a:hover,
html[data-theme="light"] .project-links a:focus-visible,
html[data-theme="light"] .contact-links a:hover,
html[data-theme="light"] .contact-links a:focus-visible,
html[data-theme="light"] .project-card:hover,
html[data-theme="light"] .skill-card:hover {
  background: var(--black);
  color: var(--accent);
}

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible {
  background: var(--black);
  color: var(--active-accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 700px;
  margin: 4rem auto 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.stats div {
  padding: 1rem .8rem;
  border-right: 1px solid currentColor;
}

.stats div:last-child { border-right: 0; }

.stats strong {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: .3rem;
  font: 600 .6rem/1.2 "Courier New", Consolas, monospace;
  text-transform: uppercase;
}

.hero-art { align-self: center; width: min(100%, 440px); justify-self: end; }

.cat-frame {
  border: 1px solid currentColor;
  padding: 14px;
  background: var(--black);
}

.cat-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid currentColor;
}

.art-caption { margin-top: .8rem; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 4vw;
  font: 600 .62rem/1 "Courier New", Consolas, monospace;
  text-transform: uppercase;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 4rem;
}

.section-heading h2 {
  margin: .6rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: .95;
  letter-spacing: -.03em;
  font-weight: 650;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 5vw;
}

.about-copy {
  align-self: center;
  justify-self: center;
  max-width: 620px;
  font-size: .88rem;
  font-weight: 500;
  text-align: center;
}

.about-copy p { margin: 0 0 1.5rem; }

code {
  font-family: "Courier New", Consolas, monospace;
}

.info-panel {
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid currentColor;
}

.tag-cloud span {
  border: 1px solid currentColor;
  padding: .45rem .6rem;
  font: 600 .62rem/1 "Courier New", Consolas, monospace;
}

.facts { margin: 0; }

.facts div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid currentColor;
}

.facts div:last-child { border-bottom: 0; }

.facts dt {
  font: 600 .62rem/1.3 "Courier New", Consolas, monospace;
  text-transform: lowercase;
}

.facts dd {
  margin: 0;
  font-size: .82rem;
  font-weight: 600;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  border: 1px solid currentColor;
  padding: clamp(.9rem, 1.35vw, 1.25rem);
  background: var(--black);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  background: var(--accent);
  color: var(--black);
}

.project-featured {
  grid-column: 1 / -1;
  min-height: auto;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: .75rem;
}

.project-card h3 {
  margin: 1.4rem 0 .8rem;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  line-height: 1;
  letter-spacing: -.03em;
}

.project-card > p {
  max-width: 850px;
  font-size: .82rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.project-links a,
.card-link {
  display: inline-block;
  border: 1px solid currentColor;
  padding: .55rem .7rem;
  font: 600 .6rem/1 "Courier New", Consolas, monospace;
  text-transform: uppercase;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  margin-top: 1.5rem;
}

.tool-grid > div {
  padding: .9rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.tool-grid b,
.tool-grid strong {
  display: block;
}

.tool-grid b {
  font: 600 .56rem/1.2 "Courier New", Consolas, monospace;
  text-transform: uppercase;
}

.tool-grid strong {
  margin-top: .3rem;
  font-size: .82rem;
}

.tool-grid p {
  margin: .3rem 0 0;
  font-size: .74rem;
  line-height: 1.4;
  font-weight: 500;
}

.detail-list {
  display: grid;
  gap: .5rem;
  margin: 1rem 0;
}

.detail-list span {
  padding-left: 1rem;
  font-size: .78rem;
  font-weight: 600;
  position: relative;
}

.detail-list span::before {
  content: "→";
  position: absolute;
  left: 0;
}

.stack {
  margin-top: auto !important;
  padding-top: 1.2rem;
  border-top: 1px solid currentColor;
  font: 600 .6rem/1.4 "Courier New", Consolas, monospace;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.skill-card {
  min-height: 250px;
  padding: 1.5rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.skill-card:hover {
  background: var(--accent);
  color: var(--black);
}

.skill-card h3 {
  margin: 2.7rem 0 .7rem;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  line-height: 1;
  letter-spacing: -.02em;
}

.skill-card p {
  margin: 0;
  font-size: .8rem;
  font-weight: 600;
}

.music-layout {
  display: grid;
  grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: start;
}

.music-profile,
.music-player {
  border: 1px solid currentColor;
}

.music-profile {
  padding: clamp(1.1rem, 2vw, 1.5rem);
}

.music-kicker,
.release-header > span,
.release-header div > span {
  font: 600 .6rem/1.25 "Courier New", Consolas, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.music-profile h3 {
  margin: 1.8rem 0 .75rem;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}

.music-profile > p:not(.music-kicker) {
  margin: 0;
  font-size: .84rem;
  font-weight: 600;
}

.music-facts {
  margin: 1.7rem 0;
  border-top: 1px solid currentColor;
}

.music-facts div {
  padding: .7rem 0;
  border-bottom: 1px solid currentColor;
}

.music-facts dt {
  margin-bottom: .25rem;
  font: 600 .58rem/1.2 "Courier New", Consolas, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.music-facts dd {
  margin: 0;
  font-size: .76rem;
  font-weight: 600;
}

.music-profile-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: .25rem;
  font: 600 .62rem/1.2 "Courier New", Consolas, monospace;
  text-transform: uppercase;
}

.music-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.release-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: .9rem 1rem;
  border-bottom: 1px solid currentColor;
}

.release-header h3 {
  margin: .4rem 0 0;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: -.03em;
}

.release-header > span { padding-top: .2rem; text-align: right; }

.music-player iframe {
  display: block;
  width: 100%;
  height: 265px;
  border: 0;
  background: var(--black);
}

.contact-layout {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 6vw;
}

.contact-lead {
  max-width: 720px;
  font-size: .95rem;
  font-weight: 600;
}

.contact-links {
  display: grid;
  gap: .65rem;
  margin-top: 2rem;
  max-width: 620px;
}

.contact-links a {
  border-bottom: 1px solid currentColor;
  padding: .7rem 0;
  font: 600 .68rem/1.3 "Courier New", Consolas, monospace;
}

.terminal {
  margin: 0;
  padding: 1.4rem;
  border: 1px solid currentColor;
  overflow: auto;
  font: 600 .68rem/1.7 "Courier New", Consolas, monospace;
  white-space: pre-wrap;
}

.cursor {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { visibility: hidden; }
}

@keyframes accent-flow {
  to { background-position: 400% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-name { animation: none; }
  .film-track { animation: none; }
}

footer {
  width: min(var(--max), calc(100% - 8vw));
  margin: 0 auto;
  padding: 1rem 0 2rem;
  font: 600 .6rem/1.4 "Courier New", Consolas, monospace;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header { height: 68px; }
  .site-header nav { gap: .75rem; }
  .hero-grid,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid { padding-top: 130px; }
  .film-frame { flex-basis: clamp(180px, 31vw, 280px); }
  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-featured { grid-column: 1 / -1; }
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .music-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 13px; }

  .site-header {
    position: absolute;
    height: auto;
    min-height: 68px;
    align-items: flex-start;
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 1rem;
  }

  .site-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: .62rem;
  }

  .header-actions { align-items: flex-start; gap: .75rem; }

  .section-inner {
    width: min(var(--max), calc(100% - 10vw));
    padding: 110px 0 75px;
  }

  .hero-grid { padding-top: 125px; }
  .work-reel { padding: 2.25rem 0; }
  .film-frame { flex-basis: 54vw; height: 42vw; }
  .hero-copy h1 { font-size: clamp(2.1rem, 12vw, 3.6rem); }
  .stats { grid-template-columns: 1fr; }
  .stats div {
    border-right: 0;
    border-bottom: 1px solid currentColor;
  }
  .stats div:last-child { border-bottom: 0; }

  .section-heading h2 { font-size: clamp(1.7rem, 10vw, 2.8rem); }
  .tool-grid,
  .skills-grid,
  .music-player-grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 75px 1fr; }
  .project-card { min-height: 0; }
  .project-gallery { grid-template-columns: 1fr; }
}
