/* ==========================================================
   RESPONSIVE — Mobile & Tablet
   ========================================================== */

/* ── TABLET: 860px ── */
@media (max-width: 860px) {
  :root { --col: 100%; --gut: 1.6rem; }

#cur {display: none;}

  /* ── Mobile nav ── */
  .nav-logo-img { height: 26px; }

  /* Hamburger — visible on mobile */
  .nav-toggle { display: flex !important; }

  /* Drawer: drops down below nav bar, full width, auto height */
  .nav-links {
    display: flex !important;
    position: fixed;
    top: 60px;               /* sits flush below the nav bar */
    left: 0;
    right: 0;
    width: 100vw !important;
    max-width: 100vw !important;
    background: #111111;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.5rem 0 1rem;
    list-style: none;
    transform: translateY(-110%);   /* hidden above */
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
                opacity   0.25s ease;
    z-index: 9999;
    overflow: visible;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-links li:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
  .nav-links li:last-child  { border-bottom: none; }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 1rem 1.6rem;
    font-family: var(--sans, 'Poppins', sans-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    letter-spacing: 0;
    transition: background 0.15s, color 0.15s;
  }
  .nav-links a:active { background: rgba(255,255,255,0.08); color: #ffffff; }
  .nav-links a.active { color: #FFC200; }
  .nav-links a::after { display: none; }

  /* Scrim below the drawer */
  .nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    top: 60px;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
  }
  .nav-scrim.visible { display: none; }

  /* Hamburger spans turn white to stay visible over white nav bar */
  .nav-toggle span { background: var(--ink, #111); }
  .nav-toggle.open span { background: var(--ink, #111); }

  /* Hero */
  .hero { padding: 0 var(--gut); }
  .hero-h1 { font-size: clamp(3.5rem, 11vw, 5.5rem); line-height: 1.0; }
  .hero-eye { font-size: 0.65rem; }
  .hero-annot { display: none; }
  .hero-scroll { display: none; }

  /* Sections */
  .sec { min-height: 0; }
  .sec-inner { padding: 4rem var(--gut) 5rem; }
  #process { min-height: 0; }

  /* Work — image above text, stacked single column on mobile */
  .work-header { padding: 1rem var(--gut) 0; }
  .work-header-inner { padding: 0 0 0.5rem; }
  .work-stmt-wrap { padding-bottom: 0.5rem; }

  /* Slide: auto height, not sticky */
  .w-slide {
    height: auto !important;
    min-height: 0 !important;
    position: relative !important;
    top: auto !important;
    padding: 0 !important;
    align-items: stretch;
  }

  /* Card: single column, image on top, text below */
  .w-slide .w-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto;
    height: auto !important;
    width: 100% !important;
  }

  /* Normal card: image row 1, text row 2 */
  .w-slide .w-card .w-img-wrap   { order: 1; }
  .w-slide .w-card .w-text-board { order: 2; }

  /* Flip card: same — image top, text below */
  .w-slide .w-card.flip .w-img-wrap   { order: 1 !important; }
  .w-slide .w-card.flip .w-text-board { order: 2 !important; }

  /* Image: full width, 13/9 ratio */
  .w-slide .w-img-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 13/9 !important;
  }

  /* Text board: full width, comfortable padding */
  .w-slide .w-text-board {
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
    padding: 2rem 1.5rem !important;
    background: #ffffff;
  }

  /* Skills */
  #skills .stickies { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  #skills .stickies .sticky { transform: none !important; }

  /* Process */
  .proc-art { display: none; }
  .proc-stmt { font-size: 1.2rem; }

  /* Experience */
  .exp-item { flex-direction: column; gap: 0.5rem; display:block;}

  /* Testimonials */
  .testimonials-wall-inner { padding: 2.5rem 0 3rem; }
  .testimonials-wall-inner .tw-header { padding: 0 var(--gut); }
  .testimonials-wall-inner .quote-list {
    flex-direction: column !important;
    flex-wrap: wrap !important;       /* allow stacking */
    padding: 0 var(--gut) !important;
    gap: 2rem !important;
  }
  .testimonials-wall-inner .quote-card {
    flex: 1 1 100% !important;        /* full width each card */
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;     /* never clip card content */
    transform: none !important;
    padding: 1.5rem 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  }
  .testimonials-wall-inner .quote-card:last-child {
    border-bottom: none !important;
  }
  .testimonials-wall-inner .q-open { display: block !important; }
  .testimonials-wall-inner .q-body { display: block !important; opacity: 1 !important; }
  .testimonials-wall-inner .q-by   { display: block !important; opacity: 1 !important; }

  /* About */
  .about-photo { float: none; width: 100%; height: 220px; margin: 0 0 1.5rem; }

  /* The Person */
  #theperson .interests-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  #theperson .int-card { transform: none !important; }
  #theperson .int-card::before { display: none !important; }

  /* Contact */
  .c-val { font-size: 1rem; }

  /* Footer */
  .footer-inner {
    flex-direction: column; gap: 0.8rem;
    align-items: flex-start; padding: 1.4rem var(--gut) 2rem;
  }
}

/* ── MOBILE: 520px ── */
@media (max-width: 520px) {
  :root { --gut: 1.2rem; }

  /* Nav */
  nav { padding: 0.7rem var(--gut); }
  .nav-logo-img { height: 22px; }

  /* Hero */
  .hero-h1 { font-size: clamp(2.8rem, 13vw, 3.8rem); line-height: 1.0; }
  .hero-eye { font-size: 0.6rem; padding: 0.25rem 0.6rem; }

  /* Work */
  .work-header { padding: 0.8rem var(--gut) 0; }

  /* Skills — single column */
  #skills .stickies { grid-template-columns: 1fr; gap: 1.2rem; }

  /* Testimonials */
  .testimonials-wall-inner .q-open { font-size: 2.5rem; }
  .testimonials-wall-inner .q-body { font-size: 0.9rem; }

  /* The Person — single column */
  #theperson .interests-grid { grid-template-columns: 1fr; gap: 1.2rem; }

  /* Section inner */
  .sec-inner { padding: 3.5rem var(--gut) 4rem; }

  /* Footer */
  .footer-inner { padding: 1.2rem var(--gut) 1.8rem; }
  footer .f-copy { font-size: 0.65rem; }
}
