@font-face {
  font-family: "Enter The Grid";
  src: url("/assets/Enter-The-Grid.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #080808;
  --panel: #151410;
  --panel-2: #1f1d18;
  --paper: #f4efe3;
  --muted: #aca38f;
  --line: rgba(244, 239, 227, 0.16);
  --acid: #d7ff35;
  --ember: #ff6a21;
  --cyan: #61f4ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(90deg, rgba(215, 255, 53, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 106, 33, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: 70px 70px;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  margin: 0;
}

body::selection {
  background: var(--acid);
  color: var(--ink);
}

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

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

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

h1 {
  font-family: "Enter The Grid", Impact, sans-serif;
  font-size: clamp(4.2rem, 12vw, 10.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.84;
  margin-bottom: 26px;
  max-width: 1120px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 22px;
  text-transform: uppercase;
}

h3 {
  font-size: 1.34rem;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(8, 8, 8, 0.84);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 0 6vw;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  border: 1px solid var(--acid);
  color: var(--acid);
  display: inline-flex;
  font-family: "Enter The Grid", Impact, sans-serif;
  height: 40px;
  justify-content: center;
  width: 48px;
}

nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

nav a {
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 10px 12px;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--line);
  color: var(--paper);
  outline: none;
}

.hero {
  align-items: end;
  background: #0a0a0a url("/assets/mainBack1.jpg") center / cover;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  min-height: 92vh;
  overflow: hidden;
  padding: 132px 6vw 64px;
  position: relative;
}

.hero::after {
  background: repeating-linear-gradient(0deg, rgba(244, 239, 227, 0.08), rgba(244, 239, 227, 0.08) 1px, transparent 1px, transparent 9px);
  content: "";
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  position: absolute;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.94), rgba(8, 8, 8, 0.64) 58%, rgba(8, 8, 8, 0.84)),
    linear-gradient(180deg, rgba(8, 8, 8, 0.18), rgba(8, 8, 8, 0.96));
  inset: 0;
  position: absolute;
}

.hero-inner,
.profile-panel {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker,
.tag {
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero-role {
  color: var(--cyan);
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.12;
  max-width: 820px;
}

.hero-copy {
  color: var(--paper);
  font-size: 1.08rem;
  max-width: 780px;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 950;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible,
.project-card a:hover,
.contact-links a:hover,
.project-card a:focus-visible,
.contact-links a:focus-visible {
  color: var(--acid);
  outline: none;
  transform: translateY(-2px);
}

.button.primary {
  background: var(--acid);
  border-color: var(--acid);
  color: #101207;
}

.button.secondary {
  background: rgba(244, 239, 227, 0.08);
}

.profile-panel {
  background: linear-gradient(180deg, rgba(21, 20, 16, 0.94), rgba(8, 8, 8, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 18px;
}

.profile-panel img {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  height: auto;
  object-fit: cover;
  object-position: center 18%;
  width: 100%;
}

.status-grid {
  display: grid;
  gap: 12px;
}

.status-grid div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.status-grid span,
.focus-grid span,
.experience-grid span {
  color: var(--ember);
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-grid strong {
  display: block;
  font-size: 0.94rem;
  margin-top: 4px;
  text-transform: uppercase;
}

.about-section,
.projects-section,
.experience-section,
.skills,
.contact-section {
  padding: 88px 6vw;
}

.about-section {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
}

.about-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 780px;
}

.metrics {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics div {
  background: rgba(17, 16, 14, 0.84);
  border-right: 1px solid var(--line);
  min-height: 168px;
  padding: 28px;
}

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

.metrics strong {
  color: var(--acid);
  display: block;
  font-family: "Enter The Grid", Impact, sans-serif;
  font-size: 4.2rem;
  font-weight: 400;
  line-height: 0.92;
}

.metrics span {
  color: var(--muted);
  display: block;
  font-weight: 850;
  margin-top: 12px;
  max-width: 230px;
  text-transform: uppercase;
}

.focus-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 88px 6vw;
}

.focus-grid article,
.project-card,
.experience-grid article,
.contact-section form {
  background: linear-gradient(180deg, rgba(21, 20, 16, 0.96), rgba(12, 12, 12, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.focus-grid article {
  min-height: 290px;
  padding: 28px;
}

.focus-grid h3 {
  margin: 22px 0 14px;
}

.focus-grid p,
.project-card p,
.experience-grid p,
.section-heading p,
.contact-section label {
  color: var(--muted);
}

.projects-section {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.92), rgba(8, 8, 8, 0.98)),
    url("/assets/mainBack1.jpg") center / cover;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 38px;
  max-width: 1040px;
}

.section-heading p:last-child {
  font-size: 1.04rem;
  max-width: 760px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  padding: 26px;
  position: relative;
}

.project-card::before {
  background: linear-gradient(90deg, var(--acid), var(--ember), var(--cyan));
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.project-card.featured {
  grid-column: span 2;
}

.tag {
  color: var(--cyan);
}

.project-card h3 {
  margin: 18px 0 14px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 20px;
  padding-top: 22px;
}

.pills span,
.skills span {
  background: rgba(244, 239, 227, 0.08);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 8px 10px;
  text-transform: uppercase;
}

.project-card a,
.contact-links a,
.private-note {
  border-bottom: 2px solid var(--ember);
  display: inline-flex;
  font-weight: 950;
  margin-top: 8px;
  padding-bottom: 4px;
  text-transform: uppercase;
}

.private-note {
  color: var(--muted);
  border-bottom-color: var(--line);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.experience-grid article {
  min-height: 250px;
  padding: 26px;
}

.experience-grid h3 {
  margin: 18px 0 14px;
}

.skills {
  display: grid;
  gap: 18px;
}

.skills div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.contact-section {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
}

.contact-section h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.contact-section form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.contact-section label {
  display: grid;
  font-size: 0.82rem;
  font-weight: 950;
  gap: 8px;
  text-transform: uppercase;
}

input,
textarea {
  background: #080808;
  border: 1px solid var(--line);
  color: var(--paper);
  font: inherit;
  min-height: 48px;
  padding: 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--acid);
  outline: none;
}

.hidden-field {
  display: none;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 14px;
  justify-content: space-between;
  padding: 24px 6vw;
  text-transform: uppercase;
}

.not-found {
  align-content: center;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.94), rgba(8, 8, 8, 0.72)),
    url("/assets/mainBack1.jpg") center / cover;
  display: grid;
  min-height: 100vh;
  padding: 8vw;
}

.not-found h1 {
  margin-bottom: 18px;
}

@media (max-width: 1080px) {
  .hero,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    max-width: 470px;
  }

  .metrics,
  .focus-grid,
  .project-grid,
  .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 22px;
    position: static;
  }

  nav {
    flex-wrap: wrap;
  }

  nav a {
    padding: 7px 8px;
  }

  .hero {
    min-height: auto;
    padding: 54px 22px 42px;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.6rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .hero-role {
    font-size: 1.24rem;
  }

  .metrics,
  .focus-grid,
  .project-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .metrics div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: 130px;
    padding: 24px 22px;
  }

  .about-section,
  .focus-grid,
  .projects-section,
  .experience-section,
  .skills,
  .contact-section {
    padding: 58px 22px;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .focus-grid article,
  .project-card,
  .experience-grid article,
  .contact-section form {
    padding: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
