:root {
  color-scheme: dark;
  --background: #050806;
  --panel: rgba(8, 20, 11, 0.88);
  --green: #39ff88;
  --green-bright: #8bffb5;
  --green-dim: #68ad7d;
  --cyan: #72ddf7;
  --text: #c9f7d6;
  --muted: #7da98a;
  --line: rgba(57, 255, 136, 0.24);
  --line-strong: rgba(57, 255, 136, 0.56);
  --shadow: 0 0 30px rgba(57, 255, 136, 0.08);
  --shadow-strong: 0 18px 60px rgba(0, 0, 0, 0.28), 0 0 38px rgba(57, 255, 136, 0.1);
  --content-width: 1120px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(57, 255, 136, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 136, 0.025) 1px, transparent 1px),
    var(--background);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

::selection {
  background: var(--green);
  color: var(--background);
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.16) 4px
  );
  opacity: 0.45;
}

a {
  color: var(--green-bright);
  text-underline-offset: 0.25em;
}

a:hover {
  color: #ffffff;
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}

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

h1,
h2,
h3 {
  color: var(--green-bright);
  font-family: var(--font-mono);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 9vw, 6.75rem);
  letter-spacing: -0.075em;
  text-shadow: 0 0 24px rgba(57, 255, 136, 0.28);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 5vw, 3.2rem);
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  transform: translateY(-200%);
  background: var(--green);
  color: var(--background);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.screen {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 9%, rgba(57, 255, 136, 0.11), transparent 34rem),
    radial-gradient(circle at 88% 28%, rgba(114, 221, 247, 0.055), transparent 28rem);
}

.site-header,
main,
footer {
  width: min(calc(100% - 2.5rem), var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 8, 6, 0.96), rgba(5, 8, 6, 0.82));
  backdrop-filter: blur(14px);
}

.brand {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  text-decoration: none;
}

.prompt-user,
.prompt-path,
.command,
.eyebrow,
.project-path,
.capability-number {
  color: var(--green);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1.35rem;
  font-family: var(--font-mono);
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.site-header nav a::before {
  content: "./";
  color: var(--green);
}

.site-header nav a:hover {
  color: var(--green-bright);
  text-shadow: 0 0 14px rgba(57, 255, 136, 0.36);
}

.hero {
  display: grid;
  min-height: calc(100vh - 5.5rem);
  min-height: calc(100svh - 5.5rem);
  padding-block: clamp(4rem, 10vw, 8rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.terminal-window,
.status-panel,
.project-card,
.certification-card,
.capability-grid article,
.contact-section {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.terminal-window {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.terminal-window::before {
  position: absolute;
  inset: 2.75rem 0 auto;
  height: 12rem;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(57, 255, 136, 0.055), transparent 58%);
}

.terminal-window::after,
.project-card::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 1rem;
  height: 1rem;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  content: "";
}

.terminal-bar {
  display: flex;
  min-height: 2.75rem;
  padding-inline: 1rem;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(57, 255, 136, 0.035);
}

.terminal-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--green-dim);
  border-radius: 50%;
}

.terminal-label {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
}

.terminal-body {
  position: relative;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.command {
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command span {
  margin-right: 0.6rem;
  color: var(--green-bright);
}

.eyebrow {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.name-last {
  white-space: nowrap;
}

.cursor {
  display: inline-block;
  width: 0.11em;
  height: 0.82em;
  margin-left: 0.12em;
  vertical-align: -0.04em;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: blink 1.05s steps(1, end) infinite;
}

.hero-copy {
  max-width: 64ch;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}

.hero-note,
.section-heading > p:last-child,
.project-card > p,
.capability-grid article > p:last-child,
.contact-section p,
footer {
  color: var(--muted);
}

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

.button {
  display: inline-block;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line-strong);
  color: var(--green-bright);
  font-family: var(--font-mono);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button-primary {
  background: var(--green);
  color: var(--background);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary:hover {
  background: var(--green-bright);
  color: var(--background);
}

.status-panel {
  padding: 1.4rem;
  font-family: var(--font-mono);
  transform: translateY(1.75rem);
}

.status-heading {
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--line);
  color: var(--green-bright);
  font-weight: 700;
}

.status-panel dl {
  margin-bottom: 0;
}

.status-panel dl > div {
  display: grid;
  padding-block: 0.55rem;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.65rem;
  border-bottom: 1px dashed rgba(57, 255, 136, 0.13);
}

.status-panel dl > div:last-child {
  border-bottom: 0;
}

.status-panel dt {
  color: var(--muted);
}

.status-panel dt::after {
  content: ":";
}

.status-panel dd {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.status-light {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.section {
  padding-block: clamp(4.5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-heading .command {
  margin-bottom: 1.1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 7vw, 6rem);
}

.about-grid p {
  margin-bottom: 0;
}

.about-grid .lead {
  color: var(--text);
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  line-height: 1.55;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.ai-copy .lead {
  color: var(--text);
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  line-height: 1.55;
}

.ai-output {
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ai-output p {
  display: grid;
  padding-block: 0.65rem;
  margin-bottom: 0;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  border-bottom: 1px dashed rgba(57, 255, 136, 0.13);
  color: var(--text);
}

.ai-output p:last-child {
  border-bottom: 0;
}

.ai-output span {
  color: var(--green);
}

.ai-output span::after {
  content: ":";
}

.problem-solving {
  display: flex;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid var(--line-strong);
  background: rgba(11, 29, 16, 0.94);
  box-shadow: var(--shadow);
}

.problem-solving h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.problem-solving p:last-child {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted);
}

.profile-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.project-card {
  position: relative;
  display: flex;
  min-height: 22rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  flex-direction: column;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: var(--line-strong);
  background: rgba(11, 29, 16, 0.94);
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

.project-index {
  position: absolute;
  top: 1.2rem;
  right: 1.35rem;
  color: rgba(57, 255, 136, 0.22);
  font-size: 2rem;
  font-weight: 700;
}

.project-path {
  padding-right: 3rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.project-card h3 {
  max-width: 19ch;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

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

.tag-list li {
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--green-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.skill-list {
  display: flex;
  padding: 0;
  margin: 1.5rem 0 0;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.skill-list li {
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--green-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.project-link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
}

.more-work {
  margin: 2rem 0 0;
  text-align: right;
}

.capability-grid article {
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.capability-grid article > p:last-of-type {
  margin-bottom: 0;
  color: var(--muted);
}

.capability-number {
  margin-bottom: 2rem;
  font-size: 0.8rem;
}

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

.certification-card {
  position: relative;
  display: flex;
  min-height: 14rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.certification-card::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 1rem;
  height: 1rem;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  content: "";
}

.certification-card:hover {
  border-color: rgba(114, 221, 247, 0.56);
  background: rgba(8, 23, 27, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28), 0 0 38px rgba(114, 221, 247, 0.08);
  color: #ffffff;
  transform: translateY(-4px);
}

.certification-card h3 {
  max-width: 28ch;
  margin-bottom: 2rem;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.certification-card > span {
  margin-top: auto;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.certification-issuer {
  margin-bottom: 1.25rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-section {
  display: flex;
  padding: clamp(2rem, 7vw, 4.5rem);
  margin-block: clamp(4.5rem, 10vw, 8rem);
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.contact-section h2 {
  max-width: 18ch;
}

.contact-section p {
  max-width: 58ch;
  margin-bottom: 0;
}

.contact-links {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.contact-links a::before {
  content: "> ";
  color: var(--green);
}

.contact-links,
footer {
  font-family: var(--font-mono);
}

footer {
  display: flex;
  padding-block: 1.5rem 3rem;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

footer p {
  margin-bottom: 0;
}

.copyright {
  margin-top: 0.35rem;
}

@keyframes blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding-block: 1.2rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .status-panel {
    transform: none;
  }

  .about-grid,
  .ai-grid,
  .project-grid,
  .capability-grid,
  .certification-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .problem-solving {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-links {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .site-header,
  main,
  footer {
    width: min(calc(100% - 1.5rem), var(--content-width));
  }

  .terminal-label {
    display: none;
  }

  .terminal-body {
    padding: 1.25rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(1.9rem, 9.5vw, 3.25rem);
    letter-spacing: -0.065em;
    white-space: nowrap;
  }

  .project-card {
    min-height: 0;
  }

  .tag-list {
    margin-top: 1.5rem;
  }

  .ai-output p {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .profile-links {
    width: 100%;
  }

  .profile-links .button {
    flex: 1 1 auto;
    text-align: center;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}

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

  .cursor {
    animation: none;
    opacity: 1;
  }

  .button,
  .project-card,
  .certification-card,
  .site-header nav a {
    transition: none;
  }

  .button:hover,
  .project-card:hover,
  .certification-card:hover {
    transform: none;
  }
}
