/* responsive.css - Multi-Device Breakpoint Art Direction */

/* --- LAPTOP / MEDIUM DESKTOP (1024px - 1199px) --- */
@media (max-width: 1199px) {
  .hero-grid {
    grid-template-columns: 44% 56%;
  }

  .hero-collage-wrapper {
    margin-left: -20px;
  }

  .hero-collage-stage {
    max-width: 600px;
    height: 450px;
  }

  .layer-portrait {
    --x: 40px;
    --y: 46px;
    width: 370px;
  }

  .layer-paint {
    --x: 20px;
    --y: 14px;
    width: 420px;
  }

  .layer-mountain-left {
    --x: 0px;
    --y: 331px;
    width: 110px;
  }

  .layer-mountain-right {
    --x: 410px;
    --y: 256px;
    width: 180px;
  }

  .layer-crown {
    --x: 170px;
    --y: -22px;
    width: 75px;
  }

  .layer-annotation-overthink {
    --x: -70px;
    --y: 55px;
    width: 135px;
  }

  .annotation-text {
    font-size: 13.5px;
  }

  .layer-polaroid-mountain {
    --x: 455px;
    --y: 20px;
    width: 125px;
  }

  .layer-disciplines-badge {
    --x: 365px;
    --y: 35px;
    width: 95px;
  }

  .layer-polaroid-vr {
    --x: 395px;
    --y: 140px;
    width: 130px;
  }

  .layer-sticky-note {
    --x: 475px;
    --y: 215px;
    width: 110px;
  }

  .disciplines-list {
    font-size: 10.5px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* --- TABLET (768px - 1023px) --- */
@media (max-width: 1023px) {
  .nav-links-desktop {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-content {
    padding-right: 0;
    max-width: 580px;
    margin: 0 auto;
    text-align: left;
  }

  .hero-collage-wrapper {
    min-height: 440px;
    justify-content: center;
    overflow: hidden;
    margin-left: 0;
  }

  .hero-collage-stage {
    max-width: 520px;
    height: 410px;
    margin: 0 auto;
  }

  .layer-portrait {
    --x: 65px;
    --y: 71px;
    width: 310px;
  }

  .layer-paint {
    --x: 50px;
    --y: 14px;
    width: 350px;
  }

  .layer-mountain-left {
    --x: 5px;
    --y: 308px;
    width: 95px;
  }

  .layer-mountain-right {
    --x: 350px;
    --y: 248px;
    width: 150px;
  }

  .layer-crown {
    --x: 190px;
    --y: -22px;
    width: 85px;
  }

  .layer-annotation-overthink {
    --x: -65px;
    --y: 55px;
    width: 125px;
  }

  .layer-polaroid-mountain {
    --x: 335px;
    --y: 20px;
    width: 120px;
  }

  .layer-polaroid-vr {
    --x: 340px;
    --y: 120px;
    width: 120px;
  }

  .layer-sticky-note {
    --x: 405px;
    --y: 165px;
    width: 105px;
  }

  .layer-disciplines-badge {
    --x: 400px;
    --y: 35px;
    width: 115px;
  }

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

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

  .secondary-grid .secondary-card:last-child {
    grid-column: 1 / -1;
  }
}

/* --- MOBILE (<= 767px) --- */
@media (max-width: 767px) {
  :root {
    --site-padding: 16px;
  }

  .nav-inner {
    height: 60px;
    padding: 0 16px;
  }

  .talk-sparkle {
    display: none !important;
  }

  .nav-right-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .nav-cta-talk {
    padding: 6px 11px;
    font-size: 13.5px;
    transform: none;
    clip-path: none;
    border-radius: 2px;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 4px;
    color: var(--ink);
  }

  /* Section Header */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Recomposed Mobile Hero */
  .hero-section {
    padding-top: var(--space-3);
    padding-bottom: var(--space-5);
    min-height: auto;
    overflow-x: hidden;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero-content {
    order: 1;
    max-width: 100%;
    width: 100%;
    padding-right: 0;
  }

  .hero-collage-wrapper {
    order: 2;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    margin-left: 0;
  }

  .hero-name-first {
    font-size: clamp(40px, 10.6vw, 50px);
    line-height: 0.88;
    letter-spacing: -0.04em;
  }

  .hero-name-last,
  .hero__surname {
    font-size: clamp(52px, 14vw, 70px);
    line-height: 0.84;
    letter-spacing: 0.02em;
    margin-top: -0.14em;
    margin-bottom: 2px;
    transform: rotate(-1deg);
    transform-origin: left center;
  }

  .hero-descriptor {
    font-size: 11.5px;
    letter-spacing: 0.1em;
    margin-top: 14px;
    margin-bottom: 10px;
  }

  .hero-intro {
    font-size: 14.5px;
    margin-bottom: var(--space-4);
    max-width: 100%;
  }

  .hero-actions {
    gap: var(--space-3);
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14.5px;
  }

  .btn-secondary-link {
    width: 100%;
    text-align: center;
    font-size: 14.5px;
  }

  /* Simplified Mobile Collage */
  .hero-collage-stage {
    width: 100%;
    max-width: 320px;
    height: 310px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }

  .layer-paint {
    --x: 20px;
    --y: 10px;
    width: 235px;
  }

  .layer-portrait {
    --x: 40px;
    --y: 48px;
    width: 240px;
    z-index: var(--z-portrait);
  }

  .layer-crown {
    --x: 112px;
    --y: 6px;
    --rotation: 5deg;
    width: 62px;
    z-index: var(--z-doodle);
  }

  /* Hide high-noise secondary props on mobile so hierarchy remains clean and 0 horizontal scroll */
  .layer-mountain-left,
  .layer-mountain-right,
  .layer-polaroid-mountain,
  .layer-disciplines-badge,
  .layer-annotation-overthink {
    display: none !important;
  }

  /* Keep authentic VR photo and yellow sticky note in tight mobile composition */
  .layer-polaroid-vr {
    --x: 210px;
    --y: 95px;
    --rotation: 4deg;
    width: 105px;
    z-index: var(--z-photo-front);
  }

  .layer-polaroid-vr .polaroid-frame {
    padding: 4px 4px 14px 4px;
  }

  .layer-polaroid-vr .polaroid-frame img {
    height: 75px;
  }

  .layer-sticky-note {
    --x: 217px;
    --y: 180px;
    --rotation: -3deg;
    width: 95px;
    z-index: var(--z-note);
  }

  .sticky-note-card {
    padding: 8px 8px 10px 8px;
  }

  .sticky-note-text {
    font-size: 10.5px;
    line-height: 1.2;
  }

  /* Featured Work: 1 Column */
  .featured-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .project-card {
    min-height: 290px;
    padding: 16px;
  }

  .project-card-title {
    font-size: 18px;
  }

  .project-card-desc {
    font-size: 12.5px;
  }

  .project-card-info {
    max-width: 62%;
  }

  .project-card-visual {
    width: 58%;
    height: 80%;
    right: -4%;
  }

  /* Secondary Modules: 1 Column */
  .secondary-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .secondary-grid .secondary-card:last-child {
    grid-column: auto;
  }

  .secondary-card {
    flex-direction: column;
    min-height: auto;
    padding: 18px;
  }

  .secondary-content {
    max-width: 100%;
    margin-bottom: var(--space-3);
  }

  .secondary-subheading {
    font-size: 17px;
  }

  .secondary-desc {
    font-size: 12.5px;
  }

  .secondary-visual {
    justify-content: flex-start;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: var(--space-5);
  }

  .footer-col-links {
    flex-direction: column;
    gap: var(--space-5);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* --- FULL-SCREEN MOBILE NAV OVERLAY --- */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--paper);
  background-image: url('../assets/textures/paper-grain.png');
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.mobile-nav-item {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  color: var(--blue);
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
