:root {
  --black: #080a09;
  --charcoal: #151817;
  --slate: #222826;
  --panel: rgba(31, 35, 33, 0.82);
  --panel-strong: rgba(42, 47, 44, 0.92);
  --line: rgba(255, 255, 255, 0.18);
  --text: #f4f6f0;
  --muted: #b9c0b7;
  --soft: #7e887f;
  --lime: #69ff64;
  --mint: #b6f7d2;
  --coral: #ff7f6e;
  --blue: #77b7ff;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.5);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(105, 255, 100, 0.16), transparent 28rem),
    radial-gradient(circle at 72% 12%, rgba(119, 183, 255, 0.14), transparent 24rem),
    linear-gradient(135deg, #050505 0%, #101311 48%, #050505 100%);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 5vw;
  background: rgba(8, 10, 9, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--black);
  background: var(--lime);
  border-radius: 7px;
  box-shadow: 0 0 28px rgba(105, 255, 100, 0.34);
  font-size: 0.8rem;
}

.site-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--lime);
}

.portfolio-page {
  min-height: 100vh;
  padding: 86px 5vw 40px;
}

.poster {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 0.85fr) minmax(320px, 0.92fr) minmax(290px, 0.9fr);
  grid-template-rows: 200px 315px 230px 124px;
  gap: 20px 22px;
  max-width: 1180px;
  min-height: 955px;
  margin: 0 auto;
  padding: 46px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 88%, rgba(255, 255, 255, 0.2), transparent 20rem),
    linear-gradient(160deg, #202321 0%, #151817 58%, #0a0b0a 100%);
  background-size: 78px 78px, 78px 78px, auto, auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.poster::before {
  position: absolute;
  inset: auto -10% -20% 18%;
  height: 34%;
  content: "";
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.34), transparent 64%);
  filter: blur(8px);
}

.poster::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.38)),
    linear-gradient(180deg, transparent 72%, rgba(0, 0, 0, 0.5));
}

.poster-name {
  position: absolute;
  top: 38px;
  left: 44px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.13);
  font-size: 6.65rem;
  font-weight: 1000;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
}

.poster-name span {
  display: block;
}

.side-label {
  position: absolute;
  top: 54px;
  right: 42px;
  z-index: 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 900;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.neon-mark {
  position: absolute;
  top: 154px;
  left: 58%;
  z-index: 4;
  width: 92px;
  height: 70px;
  border-left: 8px solid var(--lime);
  border-bottom: 8px solid var(--lime);
  transform: rotate(-26deg) skew(-16deg);
  filter: drop-shadow(0 0 14px rgba(105, 255, 100, 0.84));
}

.neon-mark::after {
  position: absolute;
  right: -28px;
  bottom: -8px;
  width: 46px;
  height: 8px;
  content: "";
  background: var(--lime);
  transform: rotate(46deg);
}

.hero-copy,
.panel,
.portrait-wrap {
  position: relative;
  z-index: 5;
}

.hero-copy {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  align-self: start;
  max-width: 330px;
  padding-top: 110px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 330px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.52rem;
  font-weight: 1000;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  color: var(--black);
  background: var(--lime);
  box-shadow: 0 0 28px rgba(105, 255, 100, 0.26);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.portrait-wrap {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  align-self: center;
  justify-self: center;
  width: 358px;
  margin-top: 62px;
}

.portrait-halo {
  position: absolute;
  inset: 10% -10% -8%;
  background:
    radial-gradient(circle at 50% 38%, rgba(105, 255, 100, 0.25), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 45%);
  filter: blur(10px);
}

.portrait-wrap img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

.open-badge {
  position: absolute;
  right: 3px;
  bottom: 30px;
  z-index: 4;
  padding: 9px 12px;
  color: var(--black);
  background: var(--lime);
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(105, 255, 100, 0.34);
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

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

.dna-panel {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  align-self: stretch;
  padding: 24px;
  overflow: hidden;
}

.dna-panel p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.42;
}

.metric-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}

.metric-row strong {
  color: var(--lime);
  font-size: 1.82rem;
  line-height: 1;
}

.metric-row span {
  color: #eaf1e8;
  font-size: 0.88rem;
  font-weight: 800;
}

.skills-panel {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  align-self: end;
  justify-self: end;
  width: 240px;
  padding: 22px;
  text-align: right;
}

.skill-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: #dce4da;
  font-size: 0.86rem;
  font-weight: 750;
  list-style: none;
}

.tools-panel {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  align-self: stretch;
  padding: 22px;
}

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-grid span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 7px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.journey-panel {
  grid-column: 3 / 4;
  grid-row: 2 / 4;
  align-self: stretch;
  padding: 24px;
  background: var(--panel-strong);
  overflow: hidden;
}

.role {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.role span {
  display: block;
  margin-bottom: 5px;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.role p {
  margin-bottom: 0;
  font-size: 0.84rem;
  line-height: 1.36;
}

.contact-panel {
  grid-column: 1 / 4;
  grid-row: 4 / 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 18px 22px;
  margin-top: 0;
  background:
    linear-gradient(90deg, rgba(105, 255, 100, 0.15), transparent 42%),
    rgba(22, 25, 24, 0.92);
}

.contact-panel h2 {
  grid-column: 1 / 2;
  max-width: 690px;
  margin-bottom: 0;
  font-size: 1.3rem;
}

.contact-panel .panel-kicker {
  grid-column: 1 / 2;
  margin-bottom: 4px;
}

.contact-links {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.contact-links a,
.contact-links span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.contact-links a:first-child {
  color: var(--black);
  background: var(--lime);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 26px 5vw 34px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.site-footer a {
  color: var(--lime);
  text-decoration: none;
}

@media (max-width: 1120px) {
  .poster {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: auto;
  }

  .poster-name {
    font-size: 5.4rem;
  }

  .hero-copy {
    grid-column: 1 / 3;
  }

  .portrait-wrap {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
    width: 320px;
    margin-top: 0;
  }

  .dna-panel,
  .tools-panel {
    grid-column: 1 / 2;
  }

  .skills-panel,
  .journey-panel {
    grid-column: 2 / 3;
    width: auto;
  }

  .skills-panel {
    grid-row: 4 / 5;
    text-align: left;
  }

  .journey-panel {
    grid-row: 5 / 6;
  }

  .contact-panel {
    grid-column: 1 / 3;
    grid-row: 6 / 7;
  }
}

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

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .portfolio-page {
    padding: 18px 12px 22px;
  }

  .poster {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
  }

  .poster-name {
    position: relative;
    top: auto;
    left: auto;
    order: -3;
    font-size: 4.1rem;
  }

  .side-label,
  .neon-mark {
    display: none;
  }

  .hero-copy {
    order: -2;
    padding-top: 0;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.38rem;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-actions .button {
    flex: 1 1 100px;
  }

  .portrait-wrap {
    order: -1;
    width: min(100%, 300px);
    margin: 6px auto 2px;
  }

  .open-badge {
    right: 0;
    bottom: 18px;
  }

  .dna-panel,
  .skills-panel,
  .tools-panel,
  .journey-panel,
  .contact-panel {
    width: 100%;
    padding: 20px;
  }

  .skills-panel {
    text-align: left;
  }

  .contact-panel {
    display: block;
  }

  .contact-links {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .contact-links a,
  .contact-links span {
    width: 100%;
    justify-content: center;
  }
}
