:root {
  color-scheme: dark;
  --bg: #060807;
  --panel: rgba(5, 9, 7, 0.9);
  --panel-solid: #050907;
  --text: #f4f1e8;
  --muted: #a8afa4;
  --dim: #6f776f;
  --line: rgba(244, 241, 232, 0.14);
  --green: #37ff8b;
  --amber: #d7ba7d;
  --red: #ff6b6b;
  --steel: #8fb1c7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 76% 17%, rgba(242, 189, 90, 0.11), transparent 28rem),
    radial-gradient(circle at 22% 8%, rgba(79, 242, 166, 0.16), transparent 34rem),
    linear-gradient(180deg, #050706 0%, #0b0d0c 42%, #070908 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
}

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: soft-light;
  opacity: 0.28;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(55, 255, 139, 0.18);
  background: rgba(2, 5, 4, 0.9);
  backdrop-filter: blur(14px);
}

.brand,
.section-label,
.terminal-body,
.project-topline,
.tag-list,
.site-footer,
.tab {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.brand {
  font-weight: 800;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

.prompt-mark,
.cmd,
.status-dot {
  color: var(--green);
}

.nav-links {
  display: flex;
  gap: clamp(0.8rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 28rem);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 4rem);
  padding: 8.5rem clamp(1rem, 5vw, 5rem) 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(244, 241, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle at 68% 40%, black 0%, transparent 68%);
  mask-image: radial-gradient(circle at 68% 40%, black 0%, transparent 68%);
  opacity: 0.75;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 72% 42%, rgba(79, 242, 166, 0.22), transparent 17rem),
    radial-gradient(circle at 84% 64%, rgba(143, 177, 199, 0.13), transparent 22rem),
    linear-gradient(90deg, rgba(6, 8, 7, 0.97) 0%, rgba(6, 8, 7, 0.72) 52%, rgba(6, 8, 7, 0.88) 100%),
    linear-gradient(180deg, transparent 0%, #060807 100%);
  pointer-events: none;
}

.hero-effects {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-content,
.terminal-card {
  position: relative;
  z-index: 3;
}

.prompt-symbol {
  position: absolute;
  right: clamp(-1.5rem, 8vw, 8rem);
  top: 21%;
  display: flex;
  align-items: center;
  gap: clamp(0.1rem, 1.5vw, 0.8rem);
  color: rgba(79, 242, 166, 0.9);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(11rem, 25vw, 25rem);
  font-weight: 800;
  line-height: 0.75;
  text-shadow:
    0 0 18px rgba(79, 242, 166, 0.82),
    0 0 70px rgba(79, 242, 166, 0.34),
    0 0 130px rgba(242, 189, 90, 0.13);
  transform: rotate(-3deg);
}

.prompt-angle {
  animation: symbolPulse 3.5s ease-in-out infinite;
}

.prompt-cursor {
  color: var(--amber);
  animation: blink 1s steps(2, start) infinite;
}

.code-rain {
  position: absolute;
  right: clamp(0.75rem, 4vw, 4rem);
  top: 11%;
  bottom: 10%;
  width: min(34rem, 48vw);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: rgba(244, 241, 232, 0.34);
  transform: perspective(900px) rotateY(-18deg);
}

.code-rain span {
  position: absolute;
  display: inline-block;
  border: 1px solid rgba(244, 241, 232, 0.1);
  border-radius: 999px;
  background: rgba(6, 8, 7, 0.48);
  padding: 0.32rem 0.62rem;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  white-space: nowrap;
  animation: floatLine 8s ease-in-out infinite;
}

.code-rain span:nth-child(1) {
  top: 5%;
  right: 28%;
}

.code-rain span:nth-child(2) {
  top: 19%;
  right: 2%;
  animation-delay: -1.2s;
}

.code-rain span:nth-child(3) {
  top: 38%;
  right: 39%;
  color: rgba(79, 242, 166, 0.5);
  animation-delay: -2.4s;
}

.code-rain span:nth-child(4) {
  top: 57%;
  right: 15%;
  color: rgba(242, 189, 90, 0.52);
  animation-delay: -3.3s;
}

.code-rain span:nth-child(5) {
  top: 72%;
  right: 47%;
  animation-delay: -4.4s;
}

.code-rain span:nth-child(6) {
  top: 86%;
  right: 8%;
  animation-delay: -5.6s;
}

.hero-content {
  max-width: 47rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  text-transform: lowercase;
}

.status-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 20px rgba(79, 242, 166, 0.8);
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 1.1rem;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 41rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.72rem 1rem;
  font-weight: 800;
}

.button.primary {
  border-color: rgba(79, 242, 166, 0.65);
  background: var(--green);
  color: #04100a;
  box-shadow: 0 0 36px rgba(79, 242, 166, 0.28);
}

.button.ghost {
  background: rgba(244, 241, 232, 0.07);
  color: var(--text);
}

.terminal-card,
.project-card,
.stack-console,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.terminal-card {
  align-self: end;
  margin-bottom: 3vh;
  overflow: hidden;
}

.terminal-bar {
  display: block;
  padding: 0.62rem 0.9rem;
  border-bottom: 1px solid rgba(55, 255, 139, 0.18);
  background:
    linear-gradient(180deg, rgba(244, 241, 232, 0.08), rgba(244, 241, 232, 0.02)),
    #111713;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.terminal-body {
  padding: 1.1rem;
  background: rgba(0, 0, 0, 0.22);
  font-size: clamp(0.82rem, 2vw, 0.98rem);
}

.terminal-body p {
  margin-bottom: 0.58rem;
}

.output {
  color: var(--muted);
  padding-left: 0;
}

.cursor {
  display: inline-block;
  color: var(--green);
  animation: blink 1s steps(2, start) infinite;
}

.band,
.projects-section,
.links-section,
.contact-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.intro,
.stack-section,
.experience-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(9rem, 0.36fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.intro p,
.section-heading p,
.contact-panel p,
.experience-item p {
  color: var(--muted);
}

.intro p {
  max-width: 62rem;
  font-size: clamp(1.12rem, 2.4vw, 1.55rem);
}

.section-label {
  color: var(--amber);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.section-heading p:last-child {
  max-width: 28rem;
}

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

.project-card {
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 242, 166, 0.45);
  background: rgba(15, 23, 18, 0.92);
}

.professional-card {
  min-height: 28rem;
  border-color: rgba(143, 177, 199, 0.2);
}

.personal-card {
  min-height: 22rem;
  border-color: rgba(55, 255, 139, 0.18);
  background:
    linear-gradient(180deg, rgba(55, 255, 139, 0.045), transparent 48%),
    var(--panel);
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3.2rem;
  color: var(--dim);
  font-size: 0.78rem;
}

.project-card p {
  color: var(--muted);
}

.work-details {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.2rem;
  padding: 0;
}

.work-details div {
  border-left: 2px solid rgba(55, 255, 139, 0.38);
  padding-left: 0.75rem;
}

.work-details dt {
  color: var(--steel);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.work-details dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.inline-link {
  width: fit-content;
  margin: 0.35rem 0 1.2rem;
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
}

.inline-link::before {
  content: "> ";
}

.inline-link:hover,
.external-link:hover strong {
  color: var(--amber);
}

.context-link {
  color: var(--steel);
}

.muted-link {
  color: var(--dim);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(143, 177, 199, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  color: var(--steel);
  font-size: 0.75rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem;
  margin: 0.35rem 0 1.2rem;
}

.project-actions .inline-link {
  margin: 0;
}

.stack-console {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.tab {
  min-height: 3rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 232, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.tab:last-of-type {
  border-right: 0;
}

.tab.active {
  background: rgba(79, 242, 166, 0.1);
  color: var(--green);
}

.stack-output {
  grid-column: 1 / -1;
  min-height: 12rem;
  padding: 1.1rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--muted);
}

.stack-output strong {
  color: var(--text);
}

.experience-section {
  align-items: start;
}

.experience-list {
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(79, 242, 166, 0.08), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(9rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.experience-item:last-child {
  border-bottom: 0;
}

.experience-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--steel);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.experience-item h3 {
  margin-bottom: 0.45rem;
}

.experience-item p {
  margin-bottom: 0;
}

.volunteer-item {
  border-left: 2px solid rgba(143, 177, 199, 0.28);
  background: rgba(244, 241, 232, 0.025);
  padding-block: 0.95rem;
}

.volunteer-item h3 {
  color: var(--muted);
  font-size: 1.05rem;
}

.volunteer-item p {
  font-size: 0.92rem;
}

.volunteer-item .experience-meta {
  color: var(--dim);
}

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

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.external-link {
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(12, 17, 14, 0.72);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.external-link:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 189, 90, 0.42);
  background: rgba(16, 22, 17, 0.94);
}

.external-link span {
  color: var(--dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.external-link strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-section {
  align-items: center;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.contact-panel p {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.8rem;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes symbolPulse {
  0%,
  100% {
    opacity: 0.74;
    filter: saturate(0.96);
  }

  50% {
    opacity: 1;
    filter: saturate(1.2);
  }
}

@keyframes floatLine {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-0.9rem, -0.55rem, 0);
  }
}

@media (max-width: 880px) {
  .hero,
  .intro,
  .stack-section,
  .experience-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .terminal-card {
    align-self: auto;
    margin-bottom: 0;
  }

  .section-heading,
  .contact-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 0.45rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4rem);
  }

  .prompt-symbol {
    right: -2.8rem;
    top: 17%;
    opacity: 0.62;
  }

  .code-rain {
    width: 90vw;
    opacity: 0.55;
  }

  .button {
    width: 100%;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}
