/* ==========================================================================
   Dark Minimal — portfolio clone
   Palette, type and spacing mirror the reference template.
   ========================================================================== */

@font-face {
  font-family: "Montserrat Variable";
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #101010;
  --surface: #141414;
  --card: rgba(20, 20, 20, 0.61);
  --white: #dfdfdf;
  --white-bright: #ffffff;
  --white-icon: rgba(243, 243, 243, 0.596);
  --white-icon-tr: rgba(243, 243, 243, 0.063);
  --accent: #a476ff;
  --accent-light: #eee5ff;
  --nav-dot: #a9ff5b;
  --font: "Montserrat Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2c2c2c var(--background);
  scrollbar-width: thin;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg,
canvas,
iframe {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: #2c2c2c;
  border: 3px solid var(--background);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

body {
  min-height: 100vh;
  padding-inline: 36px;
  padding-bottom: 70px;
  background-color: var(--background);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--background);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 100;
  width: 100%;
  transform: translateX(-50%);
  background-color: var(--background);
  border: 1px solid var(--white-icon-tr);
  border-bottom: 0;
  border-radius: 1rem 1rem 0 0;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background-color 0.5s ease-in-out, border-color 0.5s ease-in-out,
    border-radius 0.5s ease-in-out;
}

.nav.scrolling {
  background-color: rgba(16, 16, 16, 0.72);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.nav-list {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-list li {
  flex: 1;
}

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--white-icon);
  font-size: 12px;
  line-height: 1rem;
  transition: color 0.15s ease;
}

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

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nav-dot {
  display: none;
  position: absolute;
  top: 50%;
  left: -24px;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--nav-dot);
  opacity: 0;
  transform: translateY(-50%) scale(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-link.active .nav-dot {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  margin-top: 48px;
  padding-bottom: 56px;
  color: var(--white);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.hero-greeting {
  color: var(--white-icon);
  font-size: 16px;
  line-height: 1.5;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hero-title {
  color: var(--white);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  text-wrap: pretty;
}

.hero-lede {
  max-width: 70ch;
  color: var(--white-icon);
  font-size: 16px;
  line-height: 1.5;
}

.shiny {
  background: linear-gradient(135deg, #a476ff 25%, #eee5ff 50%, #a476ff 75%) 0 0 / 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 100%;
  }
  30%,
  70% {
    background-position: 0%;
  }
}

.hero-social {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 12px;
  border: 1px solid var(--white-icon-tr);
  border-radius: 12px;
  background-color: var(--card);
  color: var(--white-icon);
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.social-btn:hover {
  color: var(--white-bright);
  background-color: var(--white-icon-tr);
}

/* --------------------------------------------------------------------------
   Technology marquee
   -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  width: 100%;
  padding-block: 32px;
  overflow: hidden;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 128px;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--background), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--background), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll 50s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 48px;
  color: var(--white-icon);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  white-space: nowrap;
}

.marquee-item img {
  width: auto;
  height: 28px;
  object-fit: contain;
  opacity: 0.6;
  transition: transform 0.3s ease;
}

.marquee-item:hover img {
  transform: scale(1.1);
}

@keyframes marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   What I do
   -------------------------------------------------------------------------- */

.skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.skills-panel {
  width: 100%;
  padding-top: 12px;
  text-align: left;
}

.skills-title {
  color: var(--white);
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  font-size: 18px;
}

.accordion-item {
  width: 100%;
  border: 1px solid var(--white-icon-tr);
  border-radius: 16px;
  background-color: var(--card);
  overflow: hidden;
  transition: background-color 0.15s ease;
}

.accordion-item:hover {
  background-color: rgba(28, 28, 28, 0.72);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 0;
  background: none;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.accordion-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.accordion-face {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.accordion-label {
  display: block;
  max-width: 200px;
  overflow: hidden;
  color: var(--white);
  font-size: 18px;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accordion-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--white);
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  padding-inline: 16px;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding-bottom 0.3s ease;
}

.accordion-item.open .accordion-panel {
  max-height: 500px;
  padding-bottom: 16px;
  opacity: 1;
}

.accordion-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--white-icon);
  font-size: 14px;
  line-height: 20px;
}

.accordion-detail li {
  position: relative;
  padding-left: 16px;
}

.accordion-detail li::before {
  content: "\2022";
  position: absolute;
  left: 4px;
  color: var(--white-icon);
}

/* Letter glitch canvas */

.glitch {
  display: flex;
  justify-content: center;
  width: 290px;
  height: 290px;
  margin-inline: auto;
  padding-top: 12px;
}

.glitch-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #101010;
  overflow: hidden;
}

.glitch-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(16, 16, 16, 0) 60%, rgba(16, 16, 16, 1) 100%);
}

.glitch canvas {
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Shared section chrome
   -------------------------------------------------------------------------- */

.section {
  padding-block: 48px;
  border-top: 1px solid var(--white-icon-tr);
  color: var(--white);
}

.eyebrow {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 28px;
}

.section-title {
  margin-bottom: 32px;
  color: var(--white);
  font-size: 36px;
  font-weight: 500;
  line-height: 40px;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.project-media {
  display: block;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.project:hover .project-media {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.35);
}

.project-media img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project:hover .project-media img {
  transform: scale(1.05);
}

.project-info {
  display: flex;
  align-items: center;
  padding-inline: 12px;
}

.project-text {
  flex: 1;
  min-width: 0;
}

.project-title {
  overflow: hidden;
  color: var(--white);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-overflow: ellipsis;
}

.project-title a {
  transition: color 0.2s ease;
}

.project-title a:hover {
  color: var(--white-bright);
}

.project-status {
  display: block;
  padding-block: 2px;
  color: var(--white-icon);
  font-size: 14px;
  line-height: 20px;
}

.project-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--white-icon-tr);
  border-radius: 12px;
  background-color: var(--card);
  color: var(--white-icon);
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.icon-btn:hover {
  color: var(--white-bright);
  background-color: var(--white-icon-tr);
}

.more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 36px;
  padding: 12px;
  border: 1px solid var(--white-icon-tr);
  border-radius: 9999px;
  background-color: var(--card);
  color: var(--white-icon);
  font-size: 16px;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.more-link:hover {
  color: var(--white-bright);
  background-color: var(--white-icon-tr);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Projects page
   -------------------------------------------------------------------------- */

.page-main {
  padding-top: 24px;
}

.projects-page {
  padding-bottom: 80px;
  border-top: 0;
}

.page-lede {
  max-width: 56ch;
  margin-top: -16px;
  margin-bottom: 32px;
  color: var(--white-icon);
  font-size: 16px;
  line-height: 26px;
}

.projects-page .projects-grid {
  gap: 24px;
}

.projects-page .project {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--white-icon-tr);
  border-radius: 20px;
  background-color: var(--card);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.projects-page .project:hover {
  border-color: rgba(243, 243, 243, 0.16);
  background-color: rgba(20, 20, 20, 0.75);
  transform: translateY(-2px);
}

.projects-page .project-media {
  margin-bottom: 14px;
  border-radius: 12px;
  box-shadow: none;
}

.projects-page .project:hover .project-media {
  box-shadow: none;
}

.projects-page .project-media img {
  height: 208px;
}

.projects-page .project-info {
  padding-inline: 4px;
  padding-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-lede {
  max-width: 56ch;
  margin-top: -16px;
  margin-bottom: 32px;
  color: var(--white-icon);
  font-size: 16px;
  line-height: 26px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--white-icon-tr);
  border-radius: 16px;
  background-color: var(--card);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.pricing-card:hover {
  border-color: rgba(243, 243, 243, 0.16);
  background-color: rgba(20, 20, 20, 0.75);
}

.pricing-card.featured {
  border-color: rgba(164, 118, 255, 0.38);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(164, 118, 255, 0.09), transparent 60%),
    var(--card);
}

.pricing-card.featured:hover {
  border-color: rgba(164, 118, 255, 0.62);
}

.pricing-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(164, 118, 255, 0.35);
  border-radius: 9999px;
  background-color: rgba(164, 118, 255, 0.08);
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
}

.pricing-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.pricing-name {
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.pricing-desc {
  margin-top: 6px;
  color: var(--white-icon);
  font-size: 14px;
  line-height: 22px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 48px;
  margin-top: 20px;
  color: var(--white);
}

.pricing-amount {
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: -0.02em;
}

.pricing-amount-text {
  font-size: 32px;
}

.pricing-period {
  color: var(--white-icon);
  font-size: 14px;
  line-height: 20px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--white-icon-tr);
}

.pricing-features li {
  position: relative;
  padding-left: 24px;
  color: var(--white-icon);
  font-size: 14px;
  line-height: 20px;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 2px;
  width: 6px;
  height: 10px;
  border: solid var(--white-icon);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pricing-card.featured .pricing-features li::before {
  border-color: var(--accent);
}

.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 12px 16px;
  border: 1px solid var(--white-icon-tr);
  border-radius: 9999px;
  background-color: var(--white-icon-tr);
  color: var(--white-icon);
  font-size: 15px;
  line-height: 24px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.pricing-cta:hover {
  color: var(--white-bright);
  background-color: rgba(243, 243, 243, 0.12);
  border-color: rgba(243, 243, 243, 0.16);
}

.pricing-card.featured .pricing-cta {
  border-color: rgba(164, 118, 255, 0.45);
  color: var(--accent-light);
}

.pricing-card.featured .pricing-cta:hover {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--background);
}

.pricing-care {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px 8px;
  margin-top: 16px;
  padding: 12px 20px;
  border: 1px solid var(--white-icon-tr);
  border-radius: 16px;
  background-color: var(--card);
  color: var(--white-icon);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  text-wrap: pretty;
}

.pricing-care-label {
  color: var(--white);
  font-weight: 600;
}

.pricing-care-price {
  color: var(--accent-light);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact .section-title {
  margin-bottom: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.contact-copy {
  color: var(--white-icon);
}

.contact-copy p {
  margin-bottom: 16px;
}

.contact-copy .contact-line {
  margin-bottom: 0;
}

.contact-line span {
  color: var(--white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--white-icon-tr);
  border-radius: 8px;
  background-color: var(--card);
  color: var(--white);
  font-size: 16px;
  line-height: 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form textarea {
  min-height: 160px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.contact-form button {
  padding: 8px 16px;
  border: 1px solid var(--white-icon-tr);
  border-radius: 8px;
  background-color: var(--white-icon-tr);
  color: var(--white);
  font-size: 16px;
  line-height: 24px;
  opacity: 0.6;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.contact-form button:hover {
  background-color: rgba(243, 243, 243, 0.12);
  opacity: 1;
}

.contact-form button:focus-visible {
  outline-offset: 2px;
}

.form-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--white);
  font-size: 18px;
  line-height: 28px;
}

.form-message svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  width: 100%;
  padding-block: 48px;
  border-top: 1px solid var(--white-icon-tr);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.footer-socials {
  display: flex;
  gap: 24px;
}

.footer-social {
  color: var(--white-icon);
  transition: color 0.3s ease-in-out;
}

.footer-social:hover {
  color: var(--white-bright);
}

.like-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 40px;
  padding: 12px;
  border: 2px solid var(--white-icon);
  border-radius: 9999px;
  background: none;
  color: var(--white);
  transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.like-btn:hover {
  transform: scale(1.05);
  border-color: var(--white);
}

.like-heart {
  width: 24px;
  height: 24px;
  color: var(--white-icon);
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.like-btn:hover .like-heart {
  color: var(--white-bright);
  transform: scale(1.05);
}

.like-btn.liked .like-heart {
  color: var(--accent);
}

.like-count {
  padding-left: 12px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.like-btn.pop .like-heart {
  animation: heart-pulse 0.6s ease-in-out;
}

@keyframes heart-pulse {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.footer-credits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  padding-block: 24px;
}

.credit-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white-icon);
  font-size: 14px;
  line-height: 20px;
}

.credit-line img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.footer-playlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-playlist iframe {
  width: 100%;
  max-width: 320px;
  height: 160px;
  border: 0;
  border-radius: 12px;
}

.footer-legal {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--white-icon-tr);
}

.footer-legal p {
  color: var(--white-icon);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.footer-legal a {
  color: var(--white-icon);
  transition: color 0.3s ease-in-out;
}

.footer-legal a:hover {
  color: var(--white-bright);
}

@media (min-width: 480px) {
  .footer-legal p {
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 359px) {
  .icon-btn {
    width: 48px;
    height: 48px;
  }

  .project-actions {
    gap: 6px;
  }

  .pricing-badge {
    position: static;
    align-self: flex-start;
    margin-bottom: 10px;
  }

  /* Keep the fixed 290px glitch canvas centered in the viewport instead of
     overflowing the narrow padded content column. */
  .glitch {
    margin-inline: 0;
  }
}

/* --------------------------------------------------------------------------
   ≥ 640px
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  body {
    padding-inline: 112px;
  }

  .footer-socials {
    gap: 32px;
  }
}

/* --------------------------------------------------------------------------
   ≥ 768px
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .page-main {
    padding-top: 96px;
  }

  .nav {
    top: 24px;
    bottom: auto;
    width: 80%;
    border: 1px solid transparent;
    border-radius: 0;
    background-color: var(--background);
  }

  .nav.scrolling {
    border-color: var(--white-icon-tr);
    border-radius: 9999px;
    background-color: rgba(16, 16, 16, 0.72);
  }

  .nav-list {
    justify-content: center;
    gap: 72px;
  }

  .nav-list li {
    flex: none;
  }

  .nav-link {
    flex-direction: row;
    gap: 0;
    font-size: 16px;
    line-height: 24px;
  }

  .nav-icon {
    display: none;
  }

  .nav-dot {
    display: block;
  }

  .hero {
    margin-top: 0;
    padding-top: 144px;
    padding-bottom: 144px;
  }

  .hero-greeting {
    font-size: 18px;
    line-height: 28px;
  }

  .hero-title {
    font-size: 60px;
  }

  .hero-lede {
    font-size: 24px;
    line-height: 32px;
  }

  .hero-social {
    margin-top: 24px;
  }

  .marquee-item {
    padding-right: 80px;
  }

  .skills-panel {
    padding-top: 36px;
  }

  .skills-title {
    margin-bottom: 24px;
    font-size: 36px;
    line-height: 40px;
  }

  .accordion {
    margin-top: 0;
  }

  .accordion-item {
    max-width: 400px;
  }

  .accordion-label {
    max-width: none;
  }

  .glitch {
    flex-shrink: 0;
    width: 100%;
    height: 292px;
    margin-left: 64px;
    margin-right: 0;
    padding-top: 36px;
  }

  .section-title {
    font-size: 48px;
    line-height: 1;
  }

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

  .project-media img {
    height: 288px;
  }

  .more-link {
    font-size: 18px;
    line-height: 28px;
  }

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

/* --------------------------------------------------------------------------
   ≥ 1024px
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  body {
    padding-inline: 80px;
  }

  .hero-intro {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .hero-title {
    flex-shrink: 0;
  }

  .hero-lede {
    flex: 1;
    max-width: none;
  }

  .skills {
    flex-direction: row;
    align-items: center;
  }

  .skills-panel {
    flex: 0 0 400px;
    width: 400px;
  }

  .glitch {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
  }

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

  .pricing-desc {
    min-height: 66px;
  }

  .projects-page .projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .projects-page .project {
    flex: 0 0 calc((100% - 48px) / 3);
  }

  .projects-page .project-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .projects-page .project-title {
    font-size: 20px;
    line-height: 28px;
  }

  .projects-page .icon-btn {
    width: 48px;
    height: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-left {
    align-items: center;
  }

  .credit-line {
    justify-content: flex-start;
  }

  .footer-credits {
    align-items: stretch;
  }

  .footer-playlist {
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none;
    transform: none;
  }
}
