:root {
  --bg: #0e0b08;
  --bg-soft: #14100c;
  --surface: #18130f;
  --surface-soft: #1e1712;
  --surface-raised: #221a14;

  --orange: #d97e3a;
  --orange-bright: #f0994f;
  --orange-soft: #b96028;
  --orange-dim: #8a4f26;
  --orange-glow: rgba(217, 126, 58, 0.16);
  
  --purpur: #392ade;
  --moss: #7a9b4e;
  --moss-glow: rgba(122, 155, 78, 0.14);

  --text: #f4ede4;
  --text-soft: #cabcae;
  --text-muted: #8c7c6d;

  --border: rgba(244, 237, 228, 0.08);
  --border-strong: rgba(244, 237, 228, 0.14);

  --radius: 24px;
  --radius-sm: 14px;

  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 90px var(--orange-glow);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --font-mono:
    "JetBrains Mono",
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    Consolas,
    monospace;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(217, 126, 58, 0.05),
      transparent 35%
    ),
    radial-gradient(
      circle at 85% 60%,
      rgba(122, 155, 78, 0.03),
      transparent 45%
    ),
    var(--bg);

  color: var(--text);
  font-family: var(--font);

  overflow-x: hidden;
}

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

button,
textarea {
  font: inherit;
}

::selection {
  background: var(--orange);
  color: #17100a;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.ambient-glow {
  position: fixed;
  z-index: -2;

  width: 520px;
  height: 520px;

  top: 5%;
  left: 50%;

  transform: translateX(-50%);

  background:
    radial-gradient(
      circle,
      rgba(216, 120, 50, 0.11),
      rgba(216, 120, 50, 0.025) 40%,
      transparent 70%
    );

  filter: blur(25px);

  animation: ambientMove 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ambientMove {
  0% {
    transform: translate(-55%, -5%) scale(0.95);
  }

  100% {
    transform: translate(-45%, 10%) scale(1.08);
  }
}

.block-grid {
  position: fixed;
  inset: 0;

  z-index: -1;

  pointer-events: none;

  opacity: 0.5;

  background-image:
    linear-gradient(rgba(244, 237, 228, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 237, 228, 0.025) 1px, transparent 1px);

  background-size: 64px 64px;

  mask-image: radial-gradient(circle at 50% 0%, black, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black, transparent 65%);
}

.grain {
  position: fixed;
  inset: 0;

  z-index: 9999;

  pointer-events: none;

  opacity: 0.025;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 100;

  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.site-header.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.nav {
  width: min(1120px, calc(100% - 40px));

  margin: 18px auto;

  padding: 12px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(14, 11, 8, 0.7);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid var(--border);
  border-radius: 18px;

  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.nav-logo {
  font-size: 18px;
  color: var(--text);

  transition: color 0.25s var(--ease);
}

.nav-logo:hover {
  color: var(--orange-bright);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  position: relative;

  padding: 7px 12px;

  color: var(--text-muted);

  font-size: 13px;
  border-radius: 10px;

  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(244, 237, 228, 0.04);
}

.nav-link.active {
  color: var(--text);
  background: rgba(217, 126, 58, 0.1);
}

.nav-link.active::after {
  content: "";

  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;

  height: 2px;
  border-radius: 2px;

  background: var(--orange);
}

.page-section {
  width: min(1120px, calc(100% - 40px));

  margin-inline: auto;
}

.section-label {
  display: block;

  margin-bottom: 12px;

  color: var(--orange);

  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  min-height: 100vh;

  display: grid;

  grid-template-columns: 1fr auto;

  align-items: center;

  gap: 80px;

  padding-top: 100px;
}

.hero-content {
  max-width: 720px;
}

.hero-title {
  min-height: 42px;

  color: var(--orange-bright);

  font-family: var(--font-mono);
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 500;

  letter-spacing: 0.01em;
}

.cursor {
  display: inline-block;

  margin-left: 2px;

  color: var(--orange);

  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

.hero-name {
  margin-top: 12px;

  font-size: clamp(56px, 9vw, 110px);

  font-weight: 500;

  line-height: 0.95;

  letter-spacing: -0.04em;
}

.hero-tagline {
  margin-top: 30px;

  color: var(--text-soft);

  font-size: clamp(14px, 1.8vw, 18px);

  line-height: 1.8;
}

.hero-description {
  max-width: 560px;

  margin-top: 24px;

  color: var(--text-muted);

  font-size: 15px;

  line-height: 1.8;
}

.hero-actions {
  display: flex;

  gap: 12px;

  margin-top: 34px;
}

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 46px;

  padding: 0 20px;

  border-radius: var(--radius-sm);

  border: 1px solid var(--border);

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;

  transition:
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.15s var(--ease),
    box-shadow 0.22s var(--ease);
}

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

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: linear-gradient(160deg, var(--orange-bright), var(--orange));

  color: #1a0f08;

  border-color: var(--orange);

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 14px 30px rgba(217, 126, 58, 0.18);
}

.button-primary:hover {
  background: linear-gradient(160deg, #f5a45f, var(--orange-bright));

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 18px 40px rgba(217, 126, 58, 0.28);
}

.button-secondary {
  background: rgba(244, 237, 228, 0.03);

  color: var(--text-soft);
}

.button-secondary:hover {
  border-color: rgba(217, 126, 58, 0.3);
  background: rgba(217, 126, 58, 0.06);
  color: var(--text);
}

.hero-avatar {
  display: flex;
  justify-content: center;
}

.avatar-frame {
  width: clamp(160px, 20vw, 240px);
  aspect-ratio: 1;

  padding: 5px;

  border-radius: 32px;

  background:
    linear-gradient(
      145deg,
      var(--orange) 0%,
      rgba(217, 126, 58, 0.35) 45%,
      var(--moss-glow) 100%
    );

  box-shadow:
    var(--shadow-glow),
    0 25px 60px rgba(0, 0, 0, 0.4);

  transition: transform 0.4s var(--ease);
}

.avatar-frame:hover {
  transform: rotate(-1.5deg) scale(1.015);
}

.avatar {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 28px;

  background: var(--surface);
}

.intro {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 30px;

  padding-block: 120px;
}

.text-box {
  padding: 30px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: rgba(244, 237, 228, 0.018);

  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.text-box:hover {
  border-color: var(--border-strong);
  background: rgba(244, 237, 228, 0.03);
  transform: translateY(-3px);
}

.text-box h2 {
  font-size: 24px;

  font-weight: 500;
}

.text-box p {
  margin-top: 14px;

  color: var(--text-muted);

  font-size: 14px;

  line-height: 1.8;
}

.about-hero {
  padding-block: 160px 60px;
}

.about-hero .text-box {
  width: min(760px, 100%);
}

.about-hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.about-hero p {
  max-width: 560px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-block: 40px 100px;
}

.about-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 140px;
}

.about-skills .section-heading {
  grid-column: 1 / -1;
}

.skills-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.skills-box span {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(244, 237, 228, 0.03);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  transition: border-color 0.2s var(--ease);
}

.skills-box span:hover {
  border-color: rgba(217, 126, 58, 0.3);
}

@media (max-width: 800px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-skills {
    grid-template-columns: 1fr;
  }
}

.featured {
  padding-block: 100px;
}

.section-heading {
  margin-bottom: 35px;
}

.section-heading h2 {
  font-size: clamp(32px, 5vw, 52px);

  font-weight: 500;

  letter-spacing: -0.03em;
}

.featured-project {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  min-height: 430px;

  border: 1px solid var(--border);
  border-radius: 30px;

  overflow: hidden;

  background: var(--surface);

  box-shadow: var(--shadow-lift);
}

.project-image {
  position: relative;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle,
      rgba(217, 126, 58, 0.10),
      transparent 65%
    );
}

.project-image::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(244, 237, 228, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 237, 228, 0.035) 1px, transparent 1px);

  background-size: 28px 28px;

  mask-image: radial-gradient(circle at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 70%);
}

.minecraft-block {
  position: relative;
  z-index: 1;

  width: 108px;
  height: 108px;

  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(35deg);

  animation: blockFloat 6s ease-in-out infinite;
}

@keyframes blockFloat {
  0%, 100% { transform: rotateX(-18deg) rotateY(35deg) translateY(0); }
  50% { transform: rotateX(-18deg) rotateY(35deg) translateY(-10px); }
}

.minecraft-grass {
  transform-style: preserve-3d;
  filter: drop-shadow(0 35px 45px rgba(0, 0, 0, 0.5));
}

.minecraft-grass::before,
.minecraft-grass::after {
  content: "";
  position: absolute;
  inset: 0;
}

.minecraft-grass {
  background: #6b4a2c;
}

.minecraft-grass::before {
  background: #4d3620;
  transform: rotateY(90deg) translateZ(54px);
  transform-origin: right;
}

.minecraft-grass::after {
  background: #7fae47;
  transform: rotateX(90deg) translateZ(54px);
  transform-origin: top;
}

.project-content {
  padding: 55px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-type {
  color: var(--orange);

  font-size: 10px;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.project-content h2 {
  margin-top: 12px;

  font-size: clamp(34px, 5vw, 56px);

  font-weight: 500;
}

.project-content p {
  max-width: 580px;

  margin-top: 18px;

  color: var(--text-muted);

  line-height: 1.8;

  font-size: 14px;
}

.project-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 24px;
}

.project-tags span,
.project-card .project-tags span,
.project-modal-box .project-tags span {
  padding: 7px 10px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: rgba(244, 237, 228, 0.03);

  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 11px;

  transition: border-color 0.2s var(--ease);
}

.project-tags span:hover,
.project-card .project-tags span:hover,
.project-modal-box .project-tags span:hover {
  border-color: rgba(217, 126, 58, 0.3);
}

.project-actions {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 30px;

  color: var(--text-muted);

  font-size: 12px;
}

.text-button {
  position: relative;

  padding: 0;

  background: none;

  border: none;

  color: var(--text-soft);

  cursor: pointer;

  transition: color 0.2s var(--ease);
}

.text-button::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -2px;

  width: 0;
  height: 1px;

  background: var(--orange);

  transition: width 0.25s var(--ease);
}

.text-button:hover {
  color: var(--orange-bright);
}

.text-button:hover::after {
  width: 100%;
}

.home-end {
  padding-block: 120px;

  text-align: center;
}

.home-end p {
  color: var(--text-muted);

  font-size: 14px;
}

.text-link {
  display: inline-block;

  margin-top: 15px;

  color: var(--orange-bright);

  font-size: 14px;

  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  transform: translateX(4px);
}

.site-footer {
  width: min(1120px, calc(100% - 40px));

  margin: 0 auto;

  padding: 35px 0;

  border-top: 1px solid var(--border);

  color: var(--text-muted);

  font-size: 12px;
}

.footer-inner {
  display: flex;

  align-items: center;

  gap: 10px;
}

.footer-dot {
  color: var(--orange);
}

.discord-button {
  padding: 6px 12px;

  border: 1px solid var(--border);
  border-radius: 100px;

  color: var(--text-soft);

  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.discord-button:hover {
  color: var(--purpur);
  border-color: rgba(7, 1, 150, 0.3);
  background: rgba(0, 0, 200, 0.06);
}

.modrinth-button {
  padding: 6px 12px;

  border: 1px solid var(--border);
  border-radius: 100px;

  color: var(--text-soft);

  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.modrinth-button:hover {
  color: var(--moss);
  border-color: rgba(122, 155, 78, 0.35);
  background: var(--moss-glow);
}

.comment-overlay {
  position: fixed;
  inset: 0;

  z-index: 500;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.7);

  backdrop-filter: blur(12px);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.comment-overlay.open {
  opacity: 1;
  visibility: visible;
}

.comment-box {
  position: relative;

  width: min(580px, 100%);

  max-height: 85vh;

  overflow-y: auto;

  padding: 35px;

  border: 1px solid var(--border);
  border-radius: 26px;

  background: var(--surface);

  box-shadow: var(--shadow-lift);
}

.comment-box h2 {
  margin-bottom: 22px;

  font-size: 30px;

  font-weight: 500;
}

.comment-close {
  position: absolute;

  top: 18px;
  right: 20px;

  background: none;

  border: none;

  color: var(--text-muted);

  font-size: 28px;

  cursor: pointer;
}

#commentInput {
  width: 100%;

  min-height: 130px;

  resize: vertical;

  padding: 15px;

  border: 1px solid var(--border);

  border-radius: 15px;

  outline: none;

  background: rgba(0, 0, 0, 0.15);

  color: var(--text);

  line-height: 1.6;
}

#commentInput:focus {
  border-color: rgba(216, 120, 50, 0.3);
}

#commentSubmit {
  margin-top: 12px;
}

.comments-list {
  display: flex;

  flex-direction: column;

  gap: 12px;

  margin-top: 25px;
}

.comment {
  padding: 15px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(244, 237, 228, 0.02);
}

.comment-author {
  color: var(--orange);

  font-family: var(--font-mono);
  font-size: 11px;
}

.comment-text {
  margin-top: 7px;

  color: var(--text-soft);

  font-size: 13px;

  line-height: 1.6;
}

.reveal {
  opacity: 0;

  transform: translateY(25px);

  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}

@media (max-width: 800px) {

  .nav {
    width: calc(100% - 24px);
  }

  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 11px;
  }

  .hero {
    grid-template-columns: 1fr;

    gap: 40px;

    padding-top: 130px;

    text-align: left;
  }

  .hero-avatar {
    justify-content: flex-start;
  }

  .intro {
    grid-template-columns: 1fr;

    padding-block: 70px;
  }

  .featured-project {
    grid-template-columns: 1fr;
  }

  .project-image {
    min-height: 260px;
  }

  .project-content {
    padding: 30px;
  }

  .featured {
    padding-block: 70px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {

  .nav {
    padding: 10px 12px;
  }

  .nav-logo {
    font-size: 15px;
  }

  .nav-links {
    gap: 9px;
  }

  .nav-link {
    font-size: 10px;
  }

  .hero-name {
    font-size: 58px;
  }

  .hero-tagline {
    font-size: 13px;
  }

  .hero-description {
    font-size: 13px;
  }

  .text-box {
    padding: 24px;
  }

  .project-content {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}
.projects-hero {
  min-height: 68vh;

  display: flex;
  align-items: flex-end;

  padding-top: 140px;
  padding-bottom: 70px;
}

.projects-hero .text-box {
  width: min(760px, 100%);
}

.projects-hero h1 {
  font-size: clamp(48px, 8vw, 88px);

  font-weight: 500;

  line-height: 0.95;

  letter-spacing: -0.05em;
}

.projects-hero p {
  max-width: 560px;

  margin-top: 20px;

  color: var(--text-muted);

  font-size: 14px;

  line-height: 1.8;
}

.projects-grid {
  display: grid;

  grid-template-columns: 1.35fr 0.65fr;

  grid-template-rows: auto auto;

  gap: 24px;

  padding-bottom: 130px;
}

.project-card {
  min-width: 0;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 28px;

  background: var(--surface);

  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.project-card-large {
  grid-row: span 2;

  display: flex;
  flex-direction: column;
}

.project-card-small {
  display: flex;
  flex-direction: column;
}

.project-card-offset {
  transform: translateY(45px);
}

.project-visual {
  position: relative;

  min-height: 210px;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at center,
      rgba(216, 120, 50, 0.10),
      transparent 65%
    );
}

.project-card-large .project-visual {
  min-height: 330px;
}

.project-icon {
  width: 92px;
  height: 92px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--orange);

  border: 1px solid rgba(217, 126, 58, 0.15);
  border-radius: 22px;

  background: rgba(217, 126, 58, 0.055);

  box-shadow:
    0 0 70px rgba(217, 126, 58, 0.08);

  transition: transform 0.35s var(--ease);
}

.project-card:hover .project-icon {
  transform: scale(1.06) rotate(-2deg);
}

.project-icon svg {
  width: 52px;
  height: 52px;

  display: block;
}

.project-card-large .project-icon {
  width: 120px;
  height: 120px;

  border-radius: 28px;
}

.project-card-large .project-icon svg {
  width: 68px;
  height: 68px;
}

.visual-label {
  position: absolute;

  left: 22px;
  bottom: 20px;

  color: var(--text-muted);

  font-size: 10px;

  letter-spacing: 0.16em;
}

.project-card-content {
  padding: 30px;
}

.project-card-large .project-card-content {
  padding: 38px;
}

.project-card-content h2 {
  margin-top: 10px;

  font-size: clamp(28px, 4vw, 44px);

  font-weight: 500;

  line-height: 1;

  letter-spacing: -0.03em;
}

.project-card-small .project-card-content h2 {
  font-size: 30px;
}

.project-card-content p {
  max-width: 650px;

  margin-top: 14px;

  color: var(--text-muted);

  font-size: 13px;

  line-height: 1.8;
}

.project-card .project-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 20px;
}

.project-card .project-actions {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 30px;

  color: var(--text-muted);

  font-size: 12px;
}

.projects-end {
  padding-block: 80px 140px;
}

.projects-end h2 {
  font-size: clamp(42px, 7vw, 78px);

  font-weight: 500;

  line-height: 1.05;

  letter-spacing: -0.05em;
}

@media (max-width: 800px) {

  .projects-grid {
    grid-template-columns: 1fr;

    grid-template-rows: auto;

    padding-bottom: 80px;
  }

  .project-card-large {
    grid-row: auto;
  }

  .project-card-offset {
    transform: none;
  }

  .project-card-large .project-visual {
    min-height: 270px;
  }

  .projects-hero {
    min-height: 60vh;
  }
}

@media (max-width: 520px) {

  .projects-hero {
    padding-top: 125px;
  }

  .projects-hero h1 {
    font-size: 52px;
  }

  .project-card-content,
  .project-card-large .project-card-content {
    padding: 24px;
  }

  .project-visual,
  .project-card-large .project-visual {
    min-height: 220px;
  }

  .project-icon {
    width: 78px;
    height: 78px;
  }

  .project-icon svg {
    width: 45px;
    height: 45px;
  }

  .project-card-large .project-icon {
    width: 95px;
    height: 95px;
  }

  .project-card-large .project-icon svg {
    width: 56px;
    height: 56px;
  }

  .project-card .project-actions {
    flex-wrap: wrap;
  }
}

.project-icon-featured {
  width: 148px;
  height: 148px;
  border-radius: 32px;
  box-shadow: var(--shadow-glow);
}

.project-icon-featured svg {
  width: 84px;
  height: 84px;
}

.project-modal {
  position: fixed;
  
  inset: 0;
  
  z-index: 1000;
  
  display: flex;
  
  align-items: center;
  justify-content: center;
  
  padding: 20px;
  
  background: rgba(0, 0, 0, 0.72);
  
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  
  opacity: 0;
  visibility: hidden;
  
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.project-modal.open {
  opacity: 1;
  
  visibility: visible;
}

.project-modal-box {
  position: relative;
  
  width: min(620px, 100%);
  
  max-height: 85vh;
  
  overflow-y: auto;
  
  padding: 38px;
  
  border: 1px solid var(--border);
  
  border-radius: 26px;
  
  background: var(--surface);
  
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.45);
  
  transform: translateY(25px) scale(0.98);
  
  transition:
    transform 0.3s ease;
}

.project-modal.open .project-modal-box {
  transform: translateY(0) scale(1);
}

.project-modal-box h2 {
  margin-top: 8px;
  
  font-size: clamp(34px, 6vw, 52px);
  
  font-weight: 500;
  
  line-height: 1;
  
  letter-spacing: -0.04em;
}

.project-modal-box p {
  margin-top: 18px;
  
  color: var(--text-muted);
  
  font-size: 14px;
  
  line-height: 1.8;
}

.project-modal-close {
  position: absolute;
  
  top: 16px;
  right: 18px;
  
  width: 36px;
  height: 36px;
  
  display: flex;
  
  align-items: center;
  justify-content: center;
  
  border: 1px solid transparent;
  
  border-radius: 50%;
  
  background: rgba(244, 237, 228, 0.035);
  
  color: var(--text-muted);
  
  font-size: 24px;
  
  cursor: pointer;
  
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.project-modal-close:hover {
  color: var(--text);
  
  background: rgba(217, 126, 58, 0.1);
  
  border-color: rgba(217, 126, 58, 0.25);
}

.project-modal-box .project-tags {
  display: flex;
  
  flex-wrap: wrap;
  
  gap: 8px;
  
  margin-top: 24px;
}

.project-modal-box .project-actions {
  display: flex;
  
  align-items: center;
  
  gap: 10px;
  
  margin-top: 30px;
}

@media (max-width: 520px) {
  
  .project-modal {
    padding: 12px;
  }
  
  .project-modal-box {
    padding: 30px 24px;
    
    border-radius: 22px;
  }
  
  .project-modal-box h2 {
    font-size: 38px;
  }
  
  .project-modal-box .project-actions {
    flex-wrap: wrap;
  }
  
}

@media (prefers-reduced-motion: reduce) {
  
  body,
  .project-modal,
  .project-modal-box {
    transition: none;
  }
  
}