:root {
  --black: #080808;
  --panel: #1b1b1b;
  --white: #ffffff;
  --ink: #080808;
  --muted: #9c9c9c;
  --muted-on-light: #626262;
  --dark-muted: #777777;
  --line: #242424;
  --green: #3f9c00;
  --orange: #ff9f15;
  --blue: #120dff;
  --teal: #2eb99c;
  --container: 1472px;
  --content-container: 1054px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid #72c72b;
  outline-offset: 4px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.reveal {
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.animations-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.animations-ready .reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.section-container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--black);
}

.nav-toggle,
.nav-close {
  display: none;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.62);
}

.nav-overlay[hidden] {
  display: none;
}

.nav-shell {
  width: min(1776px, calc(100% - 48px));
  min-height: 80px;
  margin: 0 auto;
  padding: 0 112px;
  background: var(--panel);
  border-radius: 0 0 10px 10px;
  display: flex;
  align-items: center;
  gap: 58px;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  line-height: 1;
}

.nav-link {
  position: relative;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #72c72b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link-active {
  color: var(--white);
}

.nav-link-active::after {
  transform: scaleX(1);
}

.social-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #656565;
}

.social-links a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.social-links svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.social-links a[aria-label="Instagram"] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--white);
  transform: translateY(-2px);
}

.hero-section {
  min-height: calc(100vh - 80px);
  padding-bottom: 28px;
  background: var(--black);
}

.hero-section .section-container {
  width: min(var(--content-container), calc(100% - 48px));
}

.hero-grid {
  min-height: 390px;
  padding-top: 42px;
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(300px, 360px);
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.hero-copy {
  max-width: 460px;
}

.hero-copy h1 {
  margin: 0 0 20px;
  margin-top: 30px;
  color: var(--white);
  font-size: clamp(40px, 3.4vw, 50px);
  line-height: 1.05;
  font-weight: 800;
  opacity: 0;
  animation: fadeUp 640ms ease forwards;
  animation-delay: 80ms;
}

.hero-copy p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  line-height: 1.5;
}

.hero-copy .hero-subheading {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  animation: fadeUp 640ms ease forwards;
  animation-delay: 220ms;
}

.hero-copy .hero-description {
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 640ms ease forwards;
  animation-delay: 340ms;
}

.cta-button {
  width: fit-content;
  min-height: 47px;
  margin-top: 52px;
  padding: 0 30px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.hero-copy .cta-button {
  width: min(360px, 100%);
  min-width: 0;
  min-height: 62px;
  margin-top: 28px;
  padding: 0 32px;
  font-size: 19px;
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeUp 640ms ease forwards;
  animation-delay: 460ms;
}

.cta-button span[aria-hidden="true"] {
  display: inline-block;
  transition: transform 180ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.cta-button:hover span[aria-hidden="true"],
.cta-button:focus-visible span[aria-hidden="true"] {
  transform: translateX(4px);
}

.cta-green {
  background: var(--green);
  border-color: #72c72b;
  box-shadow: 0 0 38px rgba(63, 156, 0, 0.46);
}

.cta-orange {
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(255, 159, 21, 0.22);
}

.cta-blue {
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(18, 13, 255, 0.22);
}

.cta-teal {
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(46, 185, 156, 0.22);
}

.portrait-wrap {
  width: min(320px, 100%);
  aspect-ratio: 1;
  justify-self: end;
  border-radius: 50%;
  overflow: hidden;
  background: #27342e;
  opacity: 0;
  animation:
    fadeIn 520ms ease forwards,
    fadeUp 680ms ease forwards;
  animation-delay: 560ms;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 220ms ease;
}

.portrait-wrap:hover img,
.portrait-wrap:focus-within img {
  transform: scale(1.03);
}

.focus-areas {
  margin-top: 4px;
}

.focus-areas > p {
  margin: 0 0 14px;
  color: var(--white);
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  line-height: 1;
}

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

.focus-card {
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5d5d5d;
  font-family: "Courier New", Courier, monospace;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transition:
    opacity 620ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.focus-card:hover,
.focus-card:focus-visible {
  border-color: #4a4a4a;
  color: #f1f1f1;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
}

.about-section {
  background: var(--black);
  color: var(--white);
  padding: 86px 0 92px;
}

.about-section .section-container,
.project-section .section-container,
.skills-section .section-container {
  width: min(var(--content-container), calc(100% - 48px));
}

.skills-section .section-heading h2 {
  color: var(--white);
}

.skills-section .section-heading p {
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 40px;
}

.about-profile {
  min-width: 0;
}

.about-image-wrap {
  width: 100%;
  aspect-ratio: 5 / 4.8;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 220ms ease;
}

.about-image-wrap:hover .about-image,
.about-image-wrap:focus-within .about-image {
  transform: scale(1.03);
}

.about-info {
  min-width: 0;
}

.about-social-title {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.about-info h2 {
  max-width: 640px;
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 800;
}

.about-info > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  line-height: 1.6;
}

.about-info-list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.about-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.about-info-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: #72c72b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-social {
  margin-top: 30px;
}

.about-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.about-social-link {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.about-social-link svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.about-social-link[aria-label="Instagram"] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.about-social-link:hover,
.about-social-link:focus-visible {
  color: var(--white);
  transform: translateY(-2px);
}

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

.about-card,
.skill-card {
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  background: rgba(8, 8, 8, 0.24);
  transition:
    opacity 620ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.about-card {
  min-height: 138px;
  padding: 24px;
}

.about-card h3,
.skill-card h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.about-card p,
.skill-card p {
  margin: 0;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.6;
}

.about-card:hover,
.skill-card:hover {
  border-color: #555555;
  background: rgba(17, 17, 17, 0.72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.project-section {
  background: #ffffff;
  color: var(--ink);
  padding: 92px 0 142px;
}

.section-heading {
  max-width: 690px;
  margin: 0 auto 72px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(36px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
}

.section-heading p {
  margin: 0;
  color: var(--muted-on-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  line-height: 1.6;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 526px);
  align-items: center;
  justify-content: space-between;
  gap: 58px;
  margin-top: 94px;
  transition:
    opacity 620ms ease,
    transform 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.section-heading + .project-row {
  margin-top: 0;
}

.project-row-reverse {
  grid-template-columns: minmax(0, 526px) minmax(0, 470px);
}

.project-row-reverse .project-copy {
  order: 2;
}

.project-row-reverse .project-image {
  order: 1;
}

.project-copy {
  max-width: 510px;
}

.project-tag {
  min-height: 28px;
  padding: 7px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.tag-orange {
  background: #fff2df;
  color: #ff8a00;
}

.tag-blue {
  background: #e8efff;
  color: #000dff;
}

.tag-teal {
  background: #e5fff7;
  color: #14a98b;
}

.project-copy h3 {
  margin: 26px 0 14px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.14;
  font-weight: 800;
}

.project-copy p {
  margin: 0;
  color: var(--muted-on-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  line-height: 1.55;
}

.project-stack {
  margin-top: 16px !important;
  color: var(--dark-muted) !important;
  font-size: 16px !important;
  font-weight: 700;
}

.project-copy .cta-button {
  margin-top: 34px;
}

.project-image {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(8, 8, 8, 0.06);
  transition:
    box-shadow 180ms ease,
    transform 220ms ease;
}

.project-image:hover {
  box-shadow: 0 22px 56px rgba(8, 8, 8, 0.1);
  transform: scale(1.02);
}

.skills-section {
  background: var(--black);
  color: var(--white);
  padding: 92px 0 112px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.skill-card {
  min-height: 178px;
  padding: 28px 22px;
}

.contact-section {
  background: var(--black);
  color: var(--white);
  padding: 92px 0 0;
}

.contact-section .section-container {
  width: min(var(--content-container), calc(100% - 48px));
}

.contact-section .section-heading {
  max-width: 860px;
  margin-bottom: 72px;
}

.contact-section .section-heading h2 {
  color: var(--white);
}

.contact-section .section-heading p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.contact-card {
  width: min(340px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.contact-cta-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.contact-cta {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition:
    background 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
}

.contact-cta:hover,
.contact-cta:focus-visible {
  background: #111111;
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.contact-cta svg {
  width: 36px;
  height: 36px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.contact-cta-email {
  color: #ea4335;
}

.contact-cta-whatsapp {
  color: #25d366;
}

.contact-cta-instagram {
  color: #e4405f;
}

.contact-footer {
  min-height: 92px;
  margin-top: 84px;
  padding: 24px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  text-align: center;
}

.contact-footer p {
  margin: 0;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
}

.contact-footer a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-footer a:hover,
.contact-footer a:focus-visible {
  color: #72c72b;
}

@media (max-width: 1280px) {
  .nav-shell {
    width: min(1180px, calc(100% - 48px));
    min-height: 68px;
    padding: 0 36px;
    gap: 32px;
    font-size: 16px;
  }

  .social-links {
    gap: 24px;
  }

  .hero-grid {
    gap: 52px;
  }

  .focus-grid,
  .skills-grid {
    gap: 18px;
  }

  .focus-card {
    font-size: 15px;
  }
}

@media (max-width: 960px) {
  .nav-shell {
    min-height: auto;
    padding: 16px 20px;
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .social-links {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .hero-section {
    min-height: auto;
    padding-bottom: 42px;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 48px;
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    width: min(320px, 100%);
    justify-self: start;
  }

  .hero-copy .cta-button {
    width: min(360px, 100%);
    min-width: 0;
  }

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

  .about-layout,
  .project-row,
  .project-row-reverse {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-layout {
    align-items: start;
  }

  .about-image-wrap {
    max-width: 520px;
  }

  .project-row,
  .project-row-reverse {
    margin-top: 82px;
  }

  .project-row-reverse .project-copy,
  .project-row-reverse .project-image {
    order: initial;
  }

  .about-highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-image {
    max-width: 680px;
  }

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

@media (max-width: 640px) {
  .section-container {
    width: min(var(--container), calc(100% - 28px));
  }

  .hero-section .section-container,
  .about-section .section-container,
  .project-section .section-container,
  .skills-section .section-container,
  .contact-section .section-container {
    width: min(var(--content-container), calc(100% - 28px));
  }

  .site-header {
    position: sticky;
    min-height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 40;
    background: var(--black);
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--white);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .nav-shell {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(300px, 84vw);
    min-height: 100dvh;
    margin: 0;
    padding: 20px 22px 28px;
    border-radius: 0 10px 10px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-y: auto;
    font-size: 17px;
    white-space: nowrap;
    transform: translateX(-100%);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.46);
    transition: transform 180ms ease;
  }

  .nav-open .nav-shell {
    transform: translateX(0);
  }

  .nav-close {
    width: 38px;
    height: 38px;
    margin: 0 0 12px auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }

  .nav-link {
    width: 100%;
    padding: 8px 0;
    flex: 0 0 auto;
  }

  .social-links {
    width: 100%;
    margin: auto 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
    gap: 22px;
  }

  .social-links a {
    width: 24px;
    height: 24px;
  }

  .social-links svg {
    width: 22px;
    height: 22px;
  }

  .hero-section {
    padding-bottom: 34px;
  }

  .hero-grid {
    padding-top: 24px;
    gap: 20px;
    text-align: center;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy h1 {
    margin-bottom: 14px;
    font-size: clamp(28px, 8vw, 32px);
  }

  .hero-copy p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-copy .hero-subheading {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .hero-copy .cta-button {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    margin-bottom: 22px;
    padding: 0 18px;
    font-size: 14px;
  }

  .portrait-wrap {
    width: min(190px, 58vw);
    justify-self: center;
    order: -1;
  }

  .focus-areas {
    margin-top: 10px;
  }

  .focus-areas > p {
    margin-bottom: 10px;
    font-size: 13px;
    text-align: left;
  }

  .focus-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .focus-card {
    min-height: 32px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    color: #d8d8d8;
    background: #111111;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .focus-grid::-webkit-scrollbar {
    display: none;
  }

  .about-section {
    padding: 48px 0 62px;
  }

  .project-section,
  .skills-section {
    padding: 48px 0 64px;
  }

  .contact-section {
    padding: 48px 0 0;
  }

  .section-heading {
    max-width: 100%;
    margin-bottom: 30px;
    text-align: left;
  }

  .section-heading h2 {
    margin-bottom: 10px;
    font-size: 30px;
  }

  .contact-section .section-heading {
    margin-bottom: 32px;
    text-align: center;
  }

  .contact-section .section-heading p {
    font-size: 14px;
    line-height: 1.55;
  }

  .contact-card {
    padding: 18px;
  }

  .section-heading p,
  .about-info > p,
  .project-copy p {
    font-size: 14px;
    line-height: 1.55;
  }

  .about-layout,
  .about-highlight-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-layout {
    margin-bottom: 28px;
  }

  .about-image-wrap {
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 5 / 4.8;
  }

  .about-info h2 {
    font-size: 28px;
  }

  .about-info-list {
    margin-top: 18px;
  }

  .about-social {
    margin-top: 20px;
  }

  .about-card,
  .skill-card {
    min-height: auto;
    padding: 18px;
  }

  .about-card h3,
  .skill-card h3 {
    margin-bottom: 9px;
    font-size: 18px;
  }

  .about-card p,
  .skill-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .skill-card {
    padding: 14px 12px;
  }

  .skill-card h3 {
    font-size: 15px;
    line-height: 1.15;
  }

  .project-row,
  .project-row-reverse {
    gap: 14px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(8, 8, 8, 0.06);
  }

  .section-heading + .project-row {
    margin-top: 0;
  }

  .project-row .project-copy,
  .project-row-reverse .project-copy,
  .project-row-reverse .project-image {
    order: initial;
  }

  .project-row .project-image,
  .project-row-reverse .project-image {
    order: -1;
  }

  .project-copy {
    max-width: 100%;
  }

  .project-copy h3 {
    margin: 14px 0 8px;
    font-size: 21px;
  }

  .project-tag {
    min-height: 22px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .project-stack {
    margin-top: 10px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .project-copy .cta-button {
    min-height: 44px;
    margin-top: 18px;
    font-size: 13px;
  }

  .project-image {
    aspect-ratio: 5 / 4;
    border-radius: 6px;
    box-shadow: none;
  }

  .contact-cta {
    width: 54px;
    height: 54px;
  }

  .contact-cta svg {
    width: 34px;
    height: 34px;
  }

  .contact-footer {
    min-height: 86px;
    margin-top: 72px;
    padding: 22px 16px;
  }

  .contact-footer p {
    width: 100%;
    font-size: 13px;
  }

  .cta-button {
    width: 100%;
    min-height: 50px;
    margin-top: 26px;
    font-size: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .animations-ready .reveal,
  .animations-ready .reveal-visible,
  .hero-copy h1,
  .hero-copy .hero-subheading,
  .hero-copy .hero-description,
  .hero-copy .cta-button,
  .portrait-wrap {
    opacity: 1;
    transform: none;
  }
}

.project-detail-page {
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

.project-detail-page .section-container {
  width: min(var(--content-container), calc(100% - 48px));
}

.project-detail-header {
  padding: 88px 0 56px;
  background: var(--black);
}

.project-detail-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 48px;
  align-items: end;
}

.project-detail-header h1 {
  max-width: 760px;
  margin: 26px 0 20px;
  color: var(--white);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.project-detail-summary {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 20px;
  line-height: 1.55;
}

.project-detail-actions,
.project-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.project-detail-actions {
  justify-content: flex-end;
}

.project-detail-actions .cta-button,
.project-bottom-nav .cta-button {
  min-height: 50px;
  margin-top: 0;
}

.detail-link-button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.detail-link-button:hover,
.detail-link-button:focus-visible {
  border-color: #72c72b;
  color: #72c72b;
  transform: translateY(-2px);
}

.project-gallery-section {
  padding: 0 0 72px;
}

.project-gallery {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111111;
  overflow: hidden;
}

.project-gallery-viewport {
  overflow: hidden;
}

.project-gallery-track {
  display: flex;
  transition: transform 220ms ease;
}

.project-gallery-slide {
  min-width: 100%;
  margin: 0;
  position: relative;
}

.project-gallery-slide img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.project-gallery-slide figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(8, 8, 8, 0.76);
  color: var(--white);
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.35;
}

.project-gallery-controls {
  min-height: 70px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-gallery-controls > button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  background: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: "Courier New", Courier, monospace;
  font-size: 22px;
  cursor: pointer;
}

.project-gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.project-gallery-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #4c4c4c;
  cursor: pointer;
}

.project-gallery-dots button.is-active {
  background: #72c72b;
}

.project-detail-content {
  display: grid;
  gap: 28px;
  padding-bottom: 92px;
}

.project-detail-section {
  padding: 32px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.24);
}

.project-detail-section h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
}

.project-detail-section p {
  margin: 0;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 17px;
  line-height: 1.65;
}

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

.feature-grid article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111111;
}

.feature-grid h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-stack-list span {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.project-bottom-nav {
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}

@media (max-width: 960px) {
  .project-detail-header-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-detail-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 640px) {
  .project-detail-page .section-container {
    width: min(var(--content-container), calc(100% - 32px));
  }

  .project-detail-header-grid,
  .project-gallery,
  .project-detail-content {
    max-width: calc(100vw - 32px);
  }

  .project-detail-header {
    padding: 54px 0 38px;
  }

  .project-detail-header h1 {
    max-width: 11ch;
    margin: 18px 0 14px;
    font-size: 32px;
  }

  .project-detail-summary,
  .project-detail-section p {
    font-size: 15px;
  }

  .project-detail-summary {
    max-width: 38ch;
  }

  .project-detail-actions,
  .project-bottom-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-link-button,
  .project-detail-actions .cta-button,
  .project-bottom-nav .cta-button {
    width: 100%;
  }

  .project-gallery-section {
    padding-bottom: 44px;
  }

  .project-gallery-slide img {
    aspect-ratio: 5 / 4;
  }

  .project-gallery-slide figcaption {
    position: static;
    max-width: none;
    border-width: 1px 0 0;
    border-radius: 0;
    background: #111111;
  }

  .project-detail-content {
    gap: 18px;
    padding-bottom: 56px;
  }

  .project-detail-section {
    padding: 24px;
  }

  .project-detail-section h2 {
    font-size: 24px;
  }
}
