/* =========================================================
   Part 7 · Responsive
   ========================================================= */

/* ---------- Large desktop tuning ---------- */
@media (min-width: 1600px) {
  .hero { height: clamp(800px, calc(100svh - var(--header-h)), 1020px); }
  .hero-copy { bottom: 110px; width: 430px; }
  .hero-name { font-size: 100px; }
  .hero-side { bottom: 110px; width: 240px; }
  .hero-description { font-size: 13px; }
  .hero-stats .stat-value { font-size: 46px; }
  .project-caption h3 { font-size: 13px; }
  .process-row p { font-size: 11.5px; }
}

@media (max-width: 1280px) {
  .desktop-nav { gap: 24px; margin-right: 0; }
  .header-actions { gap: 16px; }
  .hero-copy { width: 33%; }
  .hero-side { width: 18.5%; }
  .hero-portrait { width: min(47%, 590px); }
  .section-head { gap: 26px; }
  .project-grid { gap: 32px 20px; }
}

@media (max-width: 1100px) {
  :root { --gutter: 30px; }
  .motion-label { display: none; }
  .desktop-nav { gap: 22px; }
  .hero { height: 760px; }
  .hero-giant { font-size: 24.5vw; }
  .hero-portrait { width: 52%; height: 90%; }
  .hero-copy { width: 36%; bottom: 88px; }
  .hero-name { font-size: clamp(52px, 5.6vw, 76px); }
  .hero-side { width: 20%; bottom: 88px; }
  .hero-stats .stat-value { font-size: 36px; min-width: 56px; }
  .hero-stats p { font-size: 8px; }
  .hero-manifesto p { font-size: 10px; }
  .crosshair { width: 36px; height: 36px; font-size: 22px; }
  .studio-grid { grid-template-columns: 1fr 1.1fr .85fr; }
  .skills-panel { padding-right: 24px; }
  .process-panel { padding-inline: 24px; }
  .quote-panel { padding-inline: 22px; }
  .quote-panel blockquote { font-size: 19px; }
  .journey-grid { gap: 40px; }
  .experience-row > button { grid-template-columns: 120px minmax(0, 1fr) 22px; gap: 14px; }
  .experience-body p,
  .experience-body .exp-tags { margin-left: 134px; }
  .contact-top { gap: 45px; }
  .footer-inner { grid-template-columns: 1.3fr .6fr .7fr 1fr; gap: 30px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .header-actions { gap: 14px; }

  /* Hero becomes stacked */
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 0 var(--gutter);
    overflow: hidden;
  }
  .hero-rules { display: none; }
  .hero-top {
    position: relative;
    inset: auto;
    padding-top: 18px;
    font-size: 9px;
    gap: 14px;
  }
  .hero-giant {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    font-size: 27vw;
    line-height: .86;
    text-align: center;
  }
  .hero-portrait {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    height: min(108vw, 600px);
    margin-top: 34px;
    transform: none;
    animation: heroFade 1.1s .15s both;
  }
  @keyframes heroFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .portrait-frame {
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 74%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 74%, transparent 100%);
  }
  .portrait-frame img { object-position: 50% 14%; }
  .portrait-tag { right: 4px; bottom: 25%; }

  .hero-copy {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 640px;
    margin-top: calc(-1 * clamp(78px, 15vw, 130px));
    padding-bottom: 8px;
    animation: heroRise .8s .35s both;
  }
  .hero-copy::before { inset: -70px -60px -20px -60px; }
  .hero-name { font-size: clamp(60px, 10.5vw, 92px); }
  .hero-role { font-size: 16px; }
  .hero-description { max-width: 380px; font-size: 13px; }
  .hero-actions .primary-link { flex: 0 1 auto; min-width: 210px; }

  .hero-side {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 30px;
    animation: heroRise .8s .45s both;
  }
  .hero-manifesto { display: none; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }
  .hero-stats > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 15px 14px 15px 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .hero-stats > div + div { padding-left: 16px; }
  .hero-stats > div:last-child { border-right: 0; }
  .hero-stats .stat-value { font-size: clamp(34px, 7vw, 46px); min-width: 0; }
  .hero-stats p { font-size: 9px; }

  .hero-bottom {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    height: 58px;
    margin-top: 24px;
  }
  .hero-availability { display: none; }
  .edition { display: inline; }

  /* Section structure */
  .section-head { grid-template-columns: minmax(0, 1fr) auto; gap: 18px 26px; }
  .section-note { grid-column: 1 / -1; grid-row: 2; margin: 0; max-width: 520px; }
  .section-head .text-link { grid-row: 1; }

  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-caption h3 { font-size: 11px; }

  .about-lead { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .about-heading { font-size: clamp(58px, 10vw, 92px); }
  .about-lead-copy { max-width: 620px; }

  .studio-grid { grid-template-columns: 1fr 1fr; }
  .skills-panel { padding-right: 26px; }
  .process-panel { border-left: 1px solid var(--line); padding-right: 0; }
  .quote-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 46px minmax(0, 1.5fr) minmax(0, .8fr);
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    border-top: 1px solid #ad1a2a;
    border-left: 0;
    min-height: 145px;
  }
  .quote-mark { height: auto; font-size: 60px; }
  .quote-panel blockquote { margin: 0; font-size: 22px; }
  .quote-panel blockquote br { display: none; }
  .quote-signature { font-size: 32px; margin: 0; text-align: center; }
  .quote-availability, .quote-bottom { display: none; }

  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3) { border-top: 1px solid var(--line); padding-left: 0; }
  .metric:nth-child(4) { border-top: 1px solid var(--line); }

  .journey-grid { grid-template-columns: 1fr; gap: 40px; }
  .awards-panel { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .awards-panel > h3 { margin: 12px 0 22px; }
  .award-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 0; }
  .award-row { border-top: 1px solid var(--line); border-bottom: 0; }

  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card:last-child { grid-column: 1 / -1; min-height: 220px; }

  .contact-top { grid-template-columns: 1fr; gap: 34px; align-items: start; }
  .contact-intro > p { max-width: 560px; }
  .contact-links { max-width: 620px; }
  .project-form { grid-template-columns: 1fr; gap: 30px; }
  .form-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
  .form-head p { max-width: 360px; }

  .footer-inner { grid-template-columns: 1.4fr .8fr .9fr; gap: 32px; }
  .footer-meta { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
  .footer-top { margin-top: 0; margin-left: auto; }

  .dialog-facts { grid-template-columns: 1fr 1.2fr .8fr; }
}

/* ---------- Small tablet / large phone ---------- */
@media (max-width: 760px) {
  .header-cta { display: none; }
  .site-header { gap: 12px; }
  .header-actions { gap: 10px; }
  .hero { padding-inline: var(--gutter); }
  .hero-top { font-size: 8px; }
  .hero-top-right { font-size: 8px; }
  .hero-giant { top: 52px; font-size: 27.5vw; }
  .hero-portrait { height: min(112vw, 540px); margin-top: 38px; }
  .hero-copy { margin-top: calc(-1 * clamp(66px, 17vw, 100px)); }
  .hero-name { font-size: clamp(54px, 12.5vw, 78px); }
  .hero-role { font-size: 15px; }
  .hero-description { font-size: 12px; }

  .section { padding-top: 48px; padding-bottom: 48px; }
  .section-head h2 { font-size: clamp(24px, 5vw, 32px); }
  .section-note { font-size: 11px; }

  .filters { gap: 20px; }
  .search-box { display: none; }
  .project-grid { gap: 26px 14px; }
  .project-caption { min-height: 70px; gap: 10px; }
  .project-number { font-size: 24px; }
  .project-caption h3 { font-size: 10px; }
  .project-category { font-size: 8px; }
  .project-hover { width: 48px; height: 48px; }

  .about-heading { font-size: clamp(52px, 12vw, 74px); }
  .about-intro { font-size: 13px; }
  .studio-grid { grid-template-columns: 1fr; }
  .skills-panel { padding: 24px 0; }
  .process-panel { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .quote-panel {
    grid-template-columns: 34px 1fr 70px;
    gap: 12px;
    padding: 20px 18px;
    margin-inline: calc(-1 * var(--gutter));
    border-left: 0;
  }
  .quote-panel blockquote { font-size: 19px; }
  .quote-signature { font-size: 26px; }
  .metrics-strip { grid-template-columns: 1fr 1fr; }
  .metric-value { font-size: 38px; }

  .logos-head { align-items: flex-start; }
  .logos-hint { display: none; }
  .logo-item { font-size: 18px; }
  .logo-item--display { font-size: 20px; }

  .experience-row > button { grid-template-columns: 96px minmax(0, 1fr) 20px; gap: 12px; min-height: 82px; }
  .experience-date { font-size: 9px; }
  .experience-main h3 { font-size: 15px; }
  .experience-body p { margin-left: 108px; font-size: 11px; }
  .experience-body .exp-tags { margin-left: 108px; }
  .award-list { grid-template-columns: 1fr; }
  .award-row { border-top: 1px solid var(--line); }
  .award-row:first-child { border-top: 0; }

  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-card:last-child { grid-column: auto; min-height: 0; }

  .contact-intro h2 { font-size: clamp(44px, 11vw, 64px); }
  .form-grid { grid-template-columns: 1fr; }
  .field-submit { flex-direction: column; align-items: stretch; }
  .field-submit .solid-button { width: 100%; }
  .form-head { flex-direction: column; align-items: flex-start; gap: 12px; }

  .footer-ghost { font-size: 19vw; padding-top: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-meta { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 5px; }

  .project-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .dialog-media { aspect-ratio: 1.45; }
  .dialog-facts { grid-template-columns: 1fr; gap: 18px; }
  .dialog-actions { flex-direction: column; align-items: stretch; }
  .dialog-actions .primary-link,
  .dialog-actions .outline-button { width: 100%; }
}

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  :root { --gutter: 20px; --header-h: 62px; }

  .site-header { height: var(--header-h); }
  .wordmark-mark { width: 28px; height: 28px; font-size: 19px; }
  .wordmark-text { font-size: 18px; }

  .hero-top > span:first-child { font-size: 8px; }
  .hero-top-right { display: none; }
  .availability { font-size: 8px; }
  .hero-giant { top: 46px; font-size: 28vw; }
  .hero-portrait { height: min(116vw, 500px); margin-top: 36px; }
  .hero-copy { margin-top: calc(-1 * clamp(56px, 18vw, 84px)); }
  .hero-hello { font-size: 31px; margin-bottom: 2px; }
  .hero-name { font-size: clamp(52px, 15.5vw, 70px); margin-bottom: 14px; }
  .hero-role { font-size: 14px; }
  .hero-tagline { font-size: 11px; margin-bottom: 14px; }
  .hero-description { font-size: 12px; line-height: 1.75; margin-bottom: 20px; max-width: none; }
  .hero-actions { gap: 14px; }
  .hero-actions .primary-link { flex: 0 1 auto; min-width: 0; }
  .hero-location { font-size: 8px; margin-top: 16px; }
  .hero-stats > div { padding: 13px 10px 13px 0; }
  .hero-stats > div + div { padding-left: 12px; }
  .hero-stats .stat-value { font-size: 34px; }
  .hero-stats p { font-size: 8px; }
  .hero-bottom { height: 54px; margin-top: 20px; font-size: 8px; }
  .scroll-line { width: 30px; }
  .edition { display: none; }

  .section { padding-top: 40px; padding-bottom: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; }
  .section-head .text-link { justify-self: start; grid-row: auto; }
  .section-note { grid-row: auto; font-size: 11px; }
  .section-head-main .eyebrow { margin-bottom: 10px; }

  .toolbar { margin-bottom: 22px; }
  .filters { width: 100%; gap: 22px; }
  .filters button { font-size: 10px; min-height: 46px; }

  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-media { aspect-ratio: 1.55; }
  .project-caption { min-height: 66px; }
  .project-caption h3 { font-size: 13px; white-space: normal; }
  .project-category { font-size: 9px; }
  .project-number { font-size: 26px; }
  .project-hover { display: none; }
  .work-foot { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 26px; }
  .work-count { text-align: center; }
  .work-foot .outline-button { width: 100%; }

  .archive-row { grid-template-columns: 54px 1fr auto; gap: 14px; min-height: 68px; }
  .archive-cat { display: none; }
  .archive-name { font-size: 14px; }

  .about-heading { font-size: 58px; }
  .about-heading br { display: block; }
  .about-intro { font-size: 13px; line-height: 1.85; }
  .panel-heading { font-size: 16px; margin-bottom: 22px; }
  .process-row { grid-template-columns: 22px 16px 1fr; gap: 12px; padding-bottom: 21px; }
  .process-track { left: 38px; }
  .process-row p { font-size: 11px; }
  .quote-panel { grid-template-columns: 26px 1fr; }
  .quote-signature { display: none; }
  .metrics-strip { margin-top: 34px; }
  .metric { padding: 18px 14px 18px 0; }
  .metric + .metric { padding-left: 16px; }
  .metric-value { font-size: 34px; }
  .metric p { font-size: 8px; }

  .logos-section { padding-top: 28px; padding-bottom: 30px; }
  .logos-head > p { font-size: 10px; }
  .logo-item { font-size: 16px; gap: 7px; }
  .logo-item--display { font-size: 18px; }

  .journey-grid { gap: 32px; }
  .experience-row > button { grid-template-columns: 82px minmax(0, 1fr) 18px; gap: 10px; }
  .experience-date { font-size: 8px; }
  .experience-main h3 { font-size: 14px; }
  .experience-place { font-size: 9px; }
  .experience-body p { margin-left: 92px; font-size: 11px; }
  .experience-body .exp-tags { margin-left: 92px; }
  .awards-panel > h3 { font-size: 38px; }

  .testimonial-card { padding: 20px; min-height: 0; }
  .testimonial-quote { font-size: 12.5px; }

  .contact-intro h2 { font-size: clamp(40px, 12.5vw, 56px); }
  .contact-intro > p { font-size: 12px; }
  .contact-cta { font-size: 11px; gap: 12px; }
  .contact-link { min-height: 64px; }
  .contact-value { font-size: 11px; }
  .project-form { margin-top: 36px; padding-top: 28px; padding-bottom: 40px; gap: 24px; }
  .form-grid { gap: 16px; }
  .field input,
  .field select,
  .field textarea { font-size: 16px; min-height: 50px; }
  .field textarea { min-height: 130px; }
  .form-note { font-size: 10px; }

  .footer-ghost { font-size: 20vw; }
  .footer-inner { padding: 30px var(--gutter) 34px; gap: 26px; }
  .footer-nav a,
  .footer-socials a { font-size: 11px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-top { margin-left: 0; }

  .dialog-heading { padding-left: 16px; }
  .dialog-media { aspect-ratio: 1.35; }
  .dialog-body { padding: 20px; }
  .dialog-title-row h2 { font-size: 30px; }
  .dialog-description { font-size: 12px; }
  .dialog-year { font-size: 20px; }
}

@media (max-width: 390px) {
  .hero-giant { font-size: 28.5vw; }
  .hero-name { font-size: 52px; }
  .hero-stats .stat-value { font-size: 30px; }
  .hero-stats p { font-size: 7px; }
  .hero-actions .primary-link { padding-inline: 14px; gap: 16px; }
  .resume-link { font-size: 9px; }
  .metric-value { font-size: 30px; }
  .experience-row > button { grid-template-columns: 72px minmax(0, 1fr) 16px; }
  .experience-body p,
  .experience-body .exp-tags { margin-left: 82px; }
}

/* ---------- Touch devices ---------- */
@media (hover: none) {
  .project-open:hover .project-cover { transform: none; }
  .testimonial-card:hover { transform: none; }
}
