@font-face {
  font-family: 'Syne';
  src: url('../fonts/Syne-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz,wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:      #09090E;
  --s2:      #14141C;
  --text:    #F2EFE6;
  --muted:   #55545C;
  --accent:  #C9952A;
  --rule:    rgba(255, 255, 255, 0.07);
  --radius:  14px;
  --nav-h:   60px;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { text-decoration: none; }
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: rgba(9, 9, 14, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(242, 239, 230, 0.75);
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-photo-wrap {
  position: absolute;
  top: 0; bottom: 0;
  left: -30px;
  width: calc(80% + 30px);
  z-index: 0;
  background: var(--bg);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  display: block;
  filter: contrast(1.06) saturate(0.72) brightness(0.85);
}

/* fades the photo into the bg on the right and bottom */
.hero-photo-fade {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  right: -3px;
  background:
    linear-gradient(to right, rgba(9,9,14,0) 40%, rgba(9,9,14,0.15) 44%, rgba(9,9,14,0.35) 49%, rgba(9,9,14,0.55) 55%, rgba(9,9,14,0.70) 64%, rgba(9,9,14,0.82) 74%, rgba(9,9,14,0.91) 84%, rgba(9,9,14,0.97) 93%, rgba(9,9,14,1) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 30%),
    linear-gradient(to bottom, rgba(9,9,14,0.3) 0%, transparent 10%);
  pointer-events: none;
}
.hero-text {
  grid-column: 2;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 3rem) 3rem 5rem 2.5rem;
  gap: 1.25rem;
}

.hero-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 500;
}

.typewriter-active::after {
  content: '|';
  opacity: 1;
  animation: blink 0.55s step-end infinite;
  margin-left: 1px;
}

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

.hero-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  animation: revealText 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.hero-bio {
  font-size: 0.92rem;
  color: rgba(242, 239, 230, 0.65);
  line-height: 1.8;
  max-width: 360px;
}

.btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
}

.about-section {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 1.5rem;
  padding: 7rem 8rem;
  border-top: 1px solid var(--rule);
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.about-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(9,9,14,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.about-photo {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 167%; /* taller than container — top 40% hides above overflow:hidden */
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.04) saturate(0.82) brightness(0.9);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-bio p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
}

.about-skills-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--muted);
  cursor: default;
  opacity: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.about-skills.skills-visible .skill {
  animation: fadeInUp 0.45s ease forwards;
}

.about-skills.skills-visible .skill:nth-child(1) { animation-delay: 0.05s; }
.about-skills.skills-visible .skill:nth-child(2) { animation-delay: 0.13s; }
.about-skills.skills-visible .skill:nth-child(3) { animation-delay: 0.21s; }
.about-skills.skills-visible .skill:nth-child(4) { animation-delay: 0.29s; }
.about-skills.skills-visible .skill:nth-child(5) { animation-delay: 0.37s; }
.about-skills.skills-visible .skill:nth-child(6) { animation-delay: 0.45s; }
.about-skills.skills-visible .skill:nth-child(7) { animation-delay: 0.53s; }

.skill:hover {
  border-color: rgba(201, 149, 42, 0.5);
  color: rgba(242, 239, 230, 0.9);
}

.fade-in-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.projects {
  padding: 6rem 3rem;
}

.section-header { margin-bottom: 2.75rem; }

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.section-title.reveal-run,
.about-heading.reveal-run,
.lego-title.reveal-run {
  animation: revealText 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.section-title:hover {
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  animation: fadeUp 0.6s ease both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes revealText {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s ease;
}

.card:hover .card-bg { transform: scale(1.05); }

/* gradient overlay — dark at bottom, lighter at top */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 5, 10, 0.96) 0%,
    rgba(5, 5, 10, 0.55) 40%,
    rgba(5, 5, 10, 0.12) 100%
  );
  transition: opacity 0.3s;
}

/* logo badge in top-left */
.card-logo {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  z-index: 2;
  transition: opacity 0.2s, filter 0.4s ease;
}

.card:hover .card-logo {
  opacity: 1;
  filter: brightness(1) invert(0);
}

/* text content pinned to bottom */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.4rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(0.95rem, 1.4vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 0.2s ease;
}

.card-desc {
  font-size: 0.78rem;
  color: rgba(242, 239, 230, 0.55);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.3rem;
}

.card-lang,
.card-stars {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(242, 239, 230, 0.45);
}
.card-lang { gap: 0.38rem; }
.card-stars { gap: 0.28rem; }

.lang-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-link {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.card-link:hover { color: #E0B045; }

.card-play-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--brand-color-rgb, 62,104,168), 0.4);
  color: rgba(var(--brand-color-rgb, 62,104,168), 0.75);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s, border-color 0.3s;
}

.card-play-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-color, #3e67a7);
  transform: translateX(-105%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-play-btn:hover {
  color: #fff;
  border-color: var(--brand-color, #3e67a7);
}

.card-play-btn:hover::before { transform: translateX(0); }

.card-play-btn span { position: relative; z-index: 1; }

.card--product .card-bg {
  background-color: #131320;
  background-size: 62%;
  background-repeat: no-repeat;
  background-position: center top;
}

/* vignette: darkens the white bg around the robot */
.card--product::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center 38%,
    transparent 28%,
    rgba(9, 9, 14, 0.72) 68%
  );
  z-index: 1;
  pointer-events: none;
}

/* card-content and card-overlay sit above the vignette */
.card--product .card-overlay,
.card--product .card-content { z-index: 2; }

.skeleton {
  background: var(--s2);
  animation: pulse 1.6s ease-in-out infinite;
  opacity: 1 !important;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 0.2; }
}

.footer {
  padding: 6rem 3rem 4rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
}

.footer-email {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

.footer-email:hover { color: var(--accent); }

.footer-icons {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.footer-icons a {
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
}

.footer-icons a.icon-linkedin:hover           { color: #0A66C2; }
.footer-icons a.icon-github:hover             { color: #f0f0f0; }
.footer-icons a.icon-instagram:hover svg path { fill: url(#ig-grad); }

.footer-icons svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.5rem;
  opacity: 0.6;
}

.card-dots {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.3rem;
  z-index: 3;
}

.dot {
  height: 3px;
  width: 18px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.dot::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: inherit;
  transition: background 0.3s ease;
}

.dot.active::after {
  animation: dot-fill var(--slide-duration, 3.5s) linear forwards;
}

@keyframes dot-fill {
  from { width: 0%; }
  to   { width: 100%; }
}

.dot:hover { opacity: 0.75; }

.card:hover .dot {
  background: rgba(var(--brand-color-rgb, 201, 149, 42), 0.35);
}

.card:hover .dot::after {
  background: var(--brand-color, var(--accent));
}

.card-logo--lg {
  height: 44px;
  top: 0;
}

a.card {
  display: block;
  color: inherit;
}

.lego-page { padding-top: var(--nav-h); }

.lego-header {
  padding: 5rem 3rem 4rem;
  border-bottom: 1px solid var(--rule);
}

.lego-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 7rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin: 0.75rem 0 1.5rem;
}

.lego-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
}

.lego-projects { padding: 0 3rem 6rem; }

.lego-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}

.lego-project--reverse { direction: rtl; }
.lego-project--reverse > * { direction: ltr; }

.lego-image {
  background: #12121A;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.lego-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 28%, rgba(9, 9, 14, 0.68) 70%);
  z-index: 1;
  pointer-events: none;
}

.lego-image img {
  width: 68%;
  height: 78%;
  object-fit: contain;
  position: relative;
  z-index: 0;
}

.lego-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lego-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.lego-project-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.lego-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.85;
}

.lego-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  padding: 0.28rem 0.72rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--muted);
  text-transform: uppercase;
}

.lego-code {
  border: 1px solid #3c3c3c;
  border-left: 3px solid #3572A5;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 3rem 5rem;
}

.lego-code-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background: #252526;
  border-bottom: 1px solid #3c3c3c;
}

.lego-code-prompt,
.lego-code-filename {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.8rem;
}
.lego-code-prompt { color: var(--accent); line-height: 1; }
.lego-code-filename { color: #d4d4d4; }

.lego-code pre {
  margin: 0;
  padding: 1rem 0;
  overflow-y: auto;
  max-height: 480px;
  background: #1e1e1e;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.lego-code pre::-webkit-scrollbar        { width: 8px; height: 8px; }
.lego-code pre::-webkit-scrollbar-track  { background: transparent; }
.lego-code pre::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.18); border-radius: 4px; }
.lego-code pre::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

.lego-code code {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #d4d4d4;
  white-space: pre;
  display: block;
  counter-reset: line;
}

.line {
  display: block;
  counter-increment: line;
  padding: 0 1.5rem 0 0;
}

.line::before {
  content: counter(line);
  display: inline-block;
  width: 3rem;
  text-align: right;
  padding-right: 1.5rem;
  color: #495162;
  user-select: none;
  -webkit-user-select: none;
}

.py-k  { color: #c586c0; }
.py-kl { color: #569cd6; }
.py-f, .py-d, .py-p { color: #dcdcaa; }
.py-s  { color: #ce9178; }
.py-c  { color: #6a9955; font-style: italic; }
.py-n  { color: #b5cea8; }

@view-transition { navigation: auto; }

::view-transition { background: var(--bg); }

::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: forwards;
}

::view-transition-old(root) { animation-name: vt-slide-out; }
::view-transition-new(root) { animation-name: vt-slide-in; }

@keyframes vt-slide-out {
  to { transform: translateX(-100%); }
}

@keyframes vt-slide-in {
  from { transform: translateX(100%); }
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #f5d78e, var(--accent));
  background-size: 200% 100%;
  z-index: 200;
  pointer-events: none;
  transition: width 0.05s linear;
}

.card-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

@media (max-width: 1200px) {
  .about-section { padding: 6rem 4rem; }
  .lego-code     { margin: 0 1.5rem 4rem; }
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .about-section {
    grid-template-columns: 7fr 5fr;
    padding: 5rem 3rem;
    gap: 2.5rem;
  }

  .lego-project { gap: 2.5rem; }
  .lego-code    { margin: 0 1rem 3rem; }
}

@media (max-width: 768px) {
  .nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.25rem; }

  /* hero: stack photo on top, text below */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero-photo-wrap {
    position: relative;
    width: 100%;
    height: 62vw;
    top: auto; bottom: auto; left: auto;
    flex-shrink: 0;
  }

  .hero-photo-fade {
    background:
      linear-gradient(to bottom, rgba(9,9,14,0.25) 0%, transparent 20%),
      linear-gradient(to top, var(--bg) 0%, transparent 40%),
      linear-gradient(to right, transparent 60%, var(--bg) 100%);
  }

  .hero-text {
    grid-column: unset;
    padding: 2.5rem 1.5rem 4rem;
    justify-content: flex-start;
  }

  .projects { padding: 4rem 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; }

  .about-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 1.5rem;
  }

  .about-photo-wrap { aspect-ratio: 4 / 3; }
  .about-photo { height: 167%; }

  .footer { padding: 4rem 1.5rem 3rem; }

  .lego-header  { padding: 3.5rem 1.5rem 2.5rem; }
  .lego-projects { padding: 0 1.5rem 4rem; }
  .lego-code    { margin: 0 0 2.5rem; border-radius: 0; border-left-width: 3px; }

  .lego-project,
  .lego-project--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 0.8rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.7rem; }

  .hero-photo-wrap { height: 72vw; }

  .hero-name { font-size: clamp(2rem, 11vw, 3.5rem); }

  .projects-grid { gap: 0.75rem; }

  .about-section { padding: 3.5rem 1.25rem; }

  .lego-title { font-size: clamp(2.5rem, 14vw, 5rem); }
}
