@font-face {
  font-family: 'MrDodo';
  src: url('Fonts/myfonts_order_7426796421290/MrDodo-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #FEC601;
  --bg: #f2f1ee;
  --ink: #14140f;
  --white: #fdfdfb;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-full: 999px;
  --border: 2px solid var(--ink);
  --max: 1100px;
  --nav-w: 300px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'MrDodo', system-ui, sans-serif;
  font-weight: 500;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* Layout shell */

.page {
  padding: 24px;
}

.page-inner {
  max-width: calc(var(--max) + var(--nav-w) + 24px);
  margin: 0 auto;
}

/* Nav */

.nav-card {
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 32px;
  width: 100%;
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 500;
  font-size: 1.3rem;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 4px;
  width: fit-content;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.05rem;
  flex: 1;
}

.nav-links a {
  opacity: 0.8;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 899px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 32px;
    font-size: 1.8rem;
    margin-top: 56px;
  }

  .nav-card.nav-open {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    margin-bottom: 0;
    border-radius: 0;
    z-index: 2000;
    padding: 32px 24px;
  }

  .nav-card.nav-open .nav-links {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (min-width: 900px) {
  .hero-row {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-top: -24px;
    display: flex;
    align-items: stretch;
  }

  .nav-card {
    width: var(--nav-w);
    flex-shrink: 0;
    margin-bottom: 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
    padding: 56px 40px;
  }

  .logo {
    font-size: 1.7rem;
    border-bottom-width: 4px;
    padding-bottom: 6px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 28px;
    font-size: 2.6rem;
  }

  .hamburger {
    display: none;
  }
}

/* Hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  padding-top: 8px;
  container-type: inline-size;
}

@media (min-width: 900px) {
  .hero {
    flex: 1 1 auto;
    min-height: 100dvh;
    align-items: center;
    padding: 0 94px 0 190px;
    max-width: 90vw;
  }
}

.hero-text {
  flex: 1 1 520px;
}

.hero h1 {
  font-size: clamp(4.4rem, 18cqw, 13rem);
  font-weight: 500;
  line-height: 0.95;
  margin: 0 0 78px;
}

.tag {
  margin: 0 0 110px;
  font-size: clamp(3.1rem, 3.8vw, 3.6rem);
  font-weight: 500;
}

.tag span {
  background: var(--yellow);
  padding: 6px 16px;
  border-radius: 6px;
}

.social {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
}

.social a {
  width: clamp(56px, 8vw, 105px);
  height: clamp(56px, 8vw, 105px);
  border-radius: 50%;
  background: var(--yellow);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social img {
  width: clamp(28px, 3.8vw, 50px);
  height: clamp(28px, 3.8vw, 50px);
}

.hero-divider {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-top: 0;
  height: 100dvh;
}

.hero-divider img {
  position: absolute;
  inset: 6vw;
  width: calc(100% - 12vw);
  height: calc(100% - 12vw);
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: var(--border);
}

/* About / intro band */

.about-band {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-top: 56px;
  background: var(--yellow);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 96px 24px;
  text-align: center;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-band p {
  max-width: 1000px;
  margin: 0 auto 48px;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.3;
}

.contact-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  margin: 0 0 24px;
}

.contact-sub {
  max-width: 560px;
  margin: 0 0 40px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
}

.about-band .social {
  margin-top: 40px;
}

.contact-hero {
  margin-top: 0;
}

.contact-email {
  display: inline-block;
  margin-top: 24px;
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  font-weight: 500;
  border-bottom: 3px solid var(--ink);
}

.contact-email:hover {
  opacity: 0.7;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: transparent;
  border: 4px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 28px 60px;
  font-weight: 500;
  font-size: 3.9rem;
}

.resume-btn img {
  width: 74px;
  height: 54px;
}

.resume-btn:hover { background: rgba(20, 20, 15, 0.08); }

/* Section headings */

.section-head {
  padding: 56px 0 0;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 500;
  margin: 0 0 8px;
}

.section-head p {
  font-size: 1.05rem;
  opacity: 0.75;
  max-width: 540px;
  margin: 0;
}

.section-head .view-all {
  display: inline-block;
  margin-top: 14px;
  font-weight: 500;
  border-bottom: 2px solid var(--ink);
}

/* Work grid */

.work {
  margin-top: 56px;
  padding: 0 0 56px;
}

.work-grid {
  width: 92vw;
  position: relative;
  left: 50%;
  margin-left: -46vw;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 24px;
}

.work-item {
  background: var(--yellow);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: block;
  aspect-ratio: 4 / 3;
}

.work-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.work-item:hover { filter: brightness(0.97); }

/* Project page */

.project-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 48px;
  font-weight: 500;
  opacity: 0.7;
}

.back-link:hover { opacity: 1; }

.project-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding-bottom: 56px;
  margin-bottom: 56px;
}

.project-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}

.project-sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin: 0 0 20px;
}

.project-rule {
  display: none;
}

.project-meta {
  display: inline-block;
  background: var(--yellow);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.project-desc p,
.project-images > p {
  font-size: 2.2rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

.project-desc p:last-child { margin-bottom: 0; }

.project-images > p {
  margin: 0;
}

.project-images {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 80px;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border: 2px dashed rgba(20, 20, 15, 0.25);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.4;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.project-image:hover {
  opacity: 0.9;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px;
  z-index: 1000;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  cursor: default;
}

.lightbox-close {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border: var(--border);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-close.active {
  display: flex;
}

.image-placeholder-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.image-placeholder-row .image-placeholder {
  aspect-ratio: 1 / 1;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-gallery-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-columns {
  display: flex;
  gap: 24px;
}

.project-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-section-title {
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 32px 0 0;
}

@media (max-width: 720px) {
  .project-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .image-placeholder-row,
  .project-gallery,
  .project-gallery-3col {
    grid-template-columns: 1fr;
  }

  .project-columns {
    flex-direction: column;
  }

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

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
    margin: 0 0 24px;
  }

  .resume-btn {
    gap: 10px;
    padding: 14px 28px;
    border-width: 3px;
    font-size: 1.3rem;
  }

  .resume-btn img {
    width: 20px;
    height: 20px;
  }

  .project-desc p,
  .project-images > p {
    font-size: 1.2rem;
    margin: 0 0 16px;
  }

  .project-images > p {
    margin: 0;
  }

  .tag {
    font-size: 1.5rem;
    margin: 0 0 40px;
  }
}

@media (min-width: 720px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
